How cam I detect, if a PDF is secured?

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

Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

How cam I detect, if a PDF is secured?

Post by Dorwol »

Hello,

how can I detect (by code), if a PDF is "edit-protected" by password?
I mean AFTER I already opened the Document!

And how can I detect (by code), if a PDF is general password secured?
I mean BEFORE I try to "OpenDocument,,PXCVA_Flags.PXCVA_NoUI" (with a error result!)

Thank you!
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How cam I detect, if a PDF is secured?

Post by John - Tracker Supp »

I am afraid our Viewer project team are on their Christmas break for the next couple of days (in Ukraine) - ad this is going to be one for them ..
Will ensure they respond as soon as they are back, apologies and thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How cam I detect, if a PDF is secured?

Post by Vasyl - PDF-XChange »

Hi, Dorwol.

I'm afraid there is no way for this in the current release.

Will be added in the future(V3).

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: How cam I detect, if a PDF is secured?

Post by Dorwol »

Hello,

will this feature already possible in coming v2.5?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How cam I detect, if a PDF is secured?

Post by Vasyl - PDF-XChange »

Hi, Dorwol.

It's already possible. Update to latest build and look to SDK Help:
Reference/NamedItems/Objects/Document/Item/Methods/IsOperationGranted
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: How cam I detect, if a PDF is secured?

Post by Dorwol »

cool, thx!
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: How cam I detect, if a PDF is secured?

Post by Paul - PDF-XChange »

:)
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com