Skip to main content
Known Participant
June 15, 2016
Question

Adobe plug-in SDK. How to open a pdf document protected by custom security handler?

  • June 15, 2016
  • 11 replies
  • 5996 views

The encryption dictionary is as follow:

20 0 obj<</Filter /FOPN_foweb /V 2 /Length 128 ... ...>>endobj

I invoke the following codes to open the pdf document, but PDDocOpen causes an exception and the error code does not make sense.

DURING

     PDDoc pdDoc = PDDocOpen(fileNameWrite, fileSys, MyPDAuthProc, FALSE);

HANDLER

     ASErrorCode  errorCode = ASGetExceptionErrorCode();

END_HANDLER

I am using Adobe plug-in SDK. How to open a pdf document protected by custom security handler?

11 replies

Legend
June 15, 2016

Contact the makers of the security handler, though it is likely they will not give you information allowing you to process these files programmatically.

Known Participant
June 15, 2016

Hi,

I think you mistake my issue. I can get the information to process these files programmatically, but the Acrobat plug-in SDK does not provide the mechanism to process the custom security handler programmatically. Or, do I miss some info that Acrobat plug-in SDK provides?