Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Security Info
  FAQ FAQ  Forum Search   Register Register  Login Login

Security Info

 Post Reply Post Reply
Author
Message
taltobello View Drop Down
Beginner
Beginner


Joined: 04 Feb 15
Location: Michigan
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote taltobello Quote  Post ReplyReply Direct Link To This Post Topic: Security Info
    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?
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
taltobello View Drop Down
Beginner
Beginner


Joined: 04 Feb 15
Location: Michigan
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote taltobello Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store