Adobe Systems Inc. has reached a definitive agreement to acquire Macromedia Inc. for US$3.4 billion in stock, the company said Monday. The deal would combine the companies' document management, Web publishing and online video delivery tools, putting Adobe squarely in the path of rival Microsoft Corp., analysts said.