Article View: adobe.acrobat.sdk
Article #166Add a watermark, the hard way
From: Jon_Pyne
Date: Tue, 31 Mar 2009 07:29
Date: Tue, 31 Mar 2009 07:29
16 lines
1224 bytes
1224 bytes
Hi.
I've been drooling over the Acrobat 7.0 SDK documentation. It talks about an addWatermarkFromFile() function in JavaScript. You lucky, lucky, lucky people.
I have Acrobat 6.0 (Pro). Ugh. You can add a watermark in the application, but there is no addWatermarkFromFile(). I had thought of using MenuItemExecute to work the menus...
acrApp.MenuItemExecute "COMP:AddBack"
SendKeys "%b"
SendKeys MY_PATH & "MY_FILE.pdf"
SendKeys "{ENTER}"
However, the crafty dialog seems to be modal, ie the code halts at MenuItemExecute and waits for me to dismiss it before executing the SendKeys commands.
Is there a way round this?
Jon
MS Office 2003
MS Windows XP Pro SP2
Adobe Acrobat 6.0 Pro
Technical Details
Message-ID:
<59b87558.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10177e,70093c1cad5bff98,start X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Jon_Pyne@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Add a watermark, the hard way Message-ID: <59b87558.-1@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 00:29:28 -0700 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit