cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
So I'm wondering if there is some way to use OLE to click the appropriate item on the menu. In other words is there something I can do in the indicated spot here:
use strict; use Win32::OLE; use Win32::OLE::Const "Acrobat"; my $acrobat = Win32::OLE->new("AcroExch.App", "Quit"); my $avdoc = Win32::OLE->new("AcroExch.AVDoc"); $avdoc->Open( "foo.pdf" ); # Open and operate the Save As... dialog? $avdoc->Close();
TIA...Steve
UPDATE Alas, the solution offered below by angiehope, while it works, produces a print image of the page. That is not the same as what you get with Save As on the Acrobat menu, which isolates the text of the document from metadata, sidebar content, etc., and represents paragraphs a distinct strings. So if anyone has an idea how to solve this, I could still use it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE Access Acrobat file menu?
by angiehope (Pilgrim) on Jan 30, 2009 at 13:16 UTC | |
by cormanaz (Deacon) on Jan 30, 2009 at 16:46 UTC | |
by cormanaz (Deacon) on Jan 30, 2009 at 16:11 UTC | |
|
Re: Win32::OLE Access Acrobat file menu?
by Anonymous Monk on Jan 30, 2009 at 13:14 UTC | |
by cormanaz (Deacon) on Jan 30, 2009 at 16:07 UTC | |
|
Re: Win32::OLE Access Acrobat file menu?
by Anonymous Monk on Jan 30, 2009 at 13:19 UTC | |
|
Re: Win32::OLE Access Acrobat file menu?
by angiehope (Pilgrim) on Jan 31, 2009 at 14:13 UTC |