Read Document/Security check?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Thoni
User
Posts: 12
Joined: Tue Aug 26, 2008 11:46 am

Read Document/Security check?

Post by Thoni »

Hello.

How can I read the Security-Settings of a pdf via code?

In the Active-X Viewer i do a

Code: Select all

CoPDFXCview1.DoVerb('Documents[0]','GetAllText',vDataIn,vDataOut,0);
But when i do this with a pdf who's settings doesn't allow a content copying or extraction it raised an error.

I want to check for permissions first instead of raising an error.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Read Document/Security check?

Post by Corwin - Tracker Sup »

How can I read the Security-Settings of a pdf via code?
That is not possible in current realization.
it raised an error.
You can use 'try ... catch' blocks to handle this error.