Skip navigation
newtypefx
Currently Being Moderated

Acrobat Protected View problems with certain SDK calls

May 15, 2012 4:38 PM

I'm trying to write a plugin for Acrobat 10.1.3. I tried to call AVAppGetNumDocs in one of the functions, and tested this function with a pdf open in Acrobat. When protected view is off, this function behaves correctly and returns 1. However, when protected view is on this function will return 0.

 

I noticed a similar problem with AVAppGetActiveDoc too. To be safe, this function is only called from within a menu item. When protected view is on, NULL is returned by the API call.

 

I've tried to upgrade to the latest Acrobat X SDK and change the ACRO_SDK_LEVEL to 0x000A0000, but this still seems to fail. I was wondering if this is expected behavior for these function calls under protected view.

 
Replies
  • Currently Being Moderated
    May 15, 2012 5:33 PM   in reply to newtypefx

    That is because plugins aren't allowed to operate on documents in Protected View.

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 10:18 AM   in reply to newtypefx

    Reader Protected Mode is NOT the same as Acrobat Protected View.

     
    |
    Mark as:
  • Currently Being Moderated
    May 17, 2012 3:31 PM   in reply to newtypefx

    NO – the white list is strictly for Protected MODE in Reader.  It has ZERO IMPACT on Protected VIEW in Acrobat.   There is no way to access files from Protected View – this is BY DESIGN.

     
    |
    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