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 - List of breaking changes
  FAQ FAQ  Forum Search   Register Register  Login Login

List of breaking changes

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


Joined: 19 Dec 05
Location: Italy
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToniSanta Quote  Post ReplyReply Direct Link To This Post Topic: List of breaking changes
    Posted: 28 Sep 11 at 12:57PM
Hi,
I'm upgrade a project from iSedQuickPDF to QuickPDF0811. My DelphiXE-compiler now shows me a lot of DCC-Errors. Do you have a list of replaced/changed functions? In the documentation I found that .Encrypted was replaced with .EncryptionStatus, but for the SetPassword I cannot find any replacement (looked in the reference guide, too). Looking the online-FAQ (http://www.quickpdflibrary.com/faq/removing-a-password.php) there are still samples to SetPassword. Somewhere in this forum I found SetAdvancePassword, but this function is missing in the reference guide so I cannot know it meanings.
Please help, I've the following code:
      FPDFDoc := FQPDF.LoadFromFile(pdfFile, '');
      try
        if (FQPDF.EncryptionStatus > 0) then
        begin
          //ns pw standard
          FQPDF.SetPassword('MyUsualPassword');
          if (FQPDF.Unencrypt = 0) then
            FQPDF.SetPassword('UsersUsualPassword');
best regards
Toni
 
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: 28 Sep 11 at 1:54PM

A lot has changed between iSedPDF and Quick PDF Library 8.11.  The Developer Guide will help you understand some of the basic usage of 8.11.  You can find the PDF files in the QPL 8.11 installation directory.

Here is some code that should help you start to understand the changes from the iSedPDF verison

Andrew.

06/09/2011  07:47 PM           624,737 Quick PDF Library 8 Developer Guide.pdf
06/09/2011  07:12 PM            89,743 Quick PDF Library 8 Upgrade Warnings.pdf


  ret := QP.LoadFromFile(pdfFile, '');

  if (ret <> 1) then
    if (QP.LastErrorCode == 404)
      ret := QP.LoadFromFile(pdfFile, 'MyUsualPassword');
  
  if (ret = 1) and (QP.EncryptionAlgorithm() <> 0)
      QP.Decrypt();

  QPDocId := QP.SelectedDocument();  // This docid is used with some QPL functions.


Andrew
      try
        if (FQPDF.EncryptionStatus > 0) then
        begin
          //ns pw standard
          FQPDF.SetPassword('MyUsualPassword');
          if (FQPDF.Unencrypt = 0) then
            FQPDF.SetPassword('UsersUsualPassword');
Back to Top
ToniSanta View Drop Down
Beginner
Beginner


Joined: 19 Dec 05
Location: Italy
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToniSanta Quote  Post ReplyReply Direct Link To This Post Posted: 28 Sep 11 at 2:53PM
Hi,
thanks for your answer, I will adapt and try the new approach to handle protections. Could several QP.LoadFromFile(..) till finding the correct password (there could be a list of predefined pwds in my application) be slower than the previous SetPassword?
And just a second question: How would I have to handle files protected with user (open) and owner (modify) passwords? Will I have to open such a file first with user-password, save them to a new file and reopen it with then owner-password? For large files this could result memory-, diskspace- and timeconsuming. Or is there another way?
 
best regards
Toni
 
 
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