Skip navigation
juliepeck11
Currently Being Moderated

AVDoc Open method & enhanced security/protected view

Jul 30, 2012 7:18 AM

 

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

 
Replies
  • Currently Being Moderated
    Jul 30, 2012 7:57 AM   in reply to juliepeck11

    Yes, this is expected behavior (as described in the Acrobat SDK documentation for Protected View).

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 4:56 AM   in reply to juliepeck11

    Just turn off the user preference.  I assume it’s a controlled environment in which your application is being deployed.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 5:24 AM   in reply to juliepeck11

    Reader’s Protected Mode (where whitelists are used) is NOT the same as Acrobat’s Protected View.   You can’t use OLE with Reader, only Acrobat.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 2, 2012 4:51 AM   in reply to juliepeck11

    Yes, you can use the customization wizard to set Privildged Locs.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points