Print Page | Close Window

Security Info

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3062
Printed Date: 17 Oct 25 at 6:49AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Security Info
Posted By: taltobello
Subject: Security Info
Date Posted: 04 Feb 15 at 4:24PM
I am using QuickPdf library 7.24. My project assigns a value to the title attribute. Recently, I have encountered some secured PDF's. When I load the document, assign the title, and save to a temporary location, the result is a document with one blank page. This is a huge problem. I'm attempting to bypass the assignment of the title if I can determine that the document is secured. When I view the properties in Adobe Pro, I can see that there changes are not allowed. However, the SecurityInfo method in QuickPDF is returning values that indicate otherwise. For example, SecurityInfo(4)  (Changing the Document) returns 6 (Allowed). Is there any remedy to 1) unsecure the document or 2) detect that the document is secured?



Replies:
Posted By: AndrewC
Date Posted: 05 Feb 15 at 5:23AM
Hello,

Are you sure the PDF file is loading correctly.  Does your QP.LoadFromFile() call return 0, 1 or 2 ?

If it returns 2 (7.xx versions only) then it means a password is required to open the file.

Andrew.


Posted By: taltobello
Date Posted: 05 Feb 15 at 1:17PM
You're absolutely right. LoadFromFile() returns 2 for the secured file. I hadn't thought about a password being required to open the file because I can open it in Adobe. I still need to find a way to unsecure and process the file, but at least now I can determine when a document is secured so I don't wipe it out. Thank you for sharing.
 
Tom



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk