I have recently inherited some code that merges two PDFs together using OLE automation. I've found that the code works with Acrobat X if Enhanced Security is disabled but it fails to open a PDF from a file if Enhanced Security is enabled (Protected View is set to All Files). I've traced the problem down to the Open method of the AVDoc class. Open always returns 0 even if the file exists. Is this the expected behaviour if Protected View is enabled? Are there any work-arounds? TIA Julie
Thanks lrosenth.
When you say "as described in the Acrobat SDK documentation for Protected View", do you mean the page titled "Impact of using Adobe Reader Protected Mode (Windows)"? This page doesn't go into much detail so I was wondering if there is some documentation that provides more detail?
Also, if Acrobat has Protected View enabled, does that mean you cannot really do any automation using OLE?
TIA
Julie
Hi Lrosenth
The trouble is that I would like Protected View enabled for PDFs in general.
I have just been reading around whitelisting using a policy. If I've read it correctly, I can whitelist PDFs in a particular location - I can probably live with that for this particular case as the PDFs being opened will be in a particular folder.
There is a chance though that the PDF being opened might not be in the location I'm expecting it to be (the folder is user configurable). So ideally I would like to whitelist the process rather than particular files. In this case, the code is being run from within Lotus Notes by the current logged on Notes user. Is that possible?
TIA
Julie
Thanks Lrosenth.
I've seen that the equivalent can be done in Acrobat using Privileged Locations. If I go to the Preferences manually and add my folder it works as expected. However, if I use the Adobe Customization Wizard to include the trusted folder as part of the installation, it does not work - the preferences in the client do not show the trusted folder although the HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown\cTrustedSites registry key appears to be set correctly.
Do you know if there are any issues with setting Privileged Locations using the Adobe Customization Wizard (version X)? I came across the following technote which says setting privileged locations is fixed in version X.
http://helpx.adobe.com/acrobat/kb/privileged-locations-customization-w izard-9.html
Thanks
Julie
North America
Europe, Middle East and Africa
Asia Pacific