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!
![]() |
List of breaking changes |
Post Reply
|
| Author | |
ToniSanta
Beginner
Joined: 19 Dec 05 Location: Italy Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: List of breaking changesPosted: 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
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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 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');
|
|
![]() |
|
ToniSanta
Beginner
Joined: 19 Dec 05 Location: Italy Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store