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!
Append Pages from unsecured to secured pdf |
Post Reply |
Author | |
amitsri
Beginner Joined: 12 Sep 11 Location: INDIA Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 12 Sep 11 at 6:19AM |
Hi,
I need to append pages from one unsecured PDF to another secured PDF and want to keep all the source secured PDF's restrictions with password as it is. Please suggest me any sample code to achieve the goal. In addition, i have only open password to read the secured PDF. For further explanation, see below. Source1 + Source2 = New Secured PDF + Unsecured PDF = New Secured PDF with all the Secured PDF Open and Restrictions. Thanks Edited by amitsri - 12 Sep 11 at 6:41AM |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
You will want to use these two functions:
GetEncryptionFingerprint EncryptWithFingerprint So basically the steps are: 1. Load secured PDF 2. Get encryption details using GetEncryptionFingerprint 3. Decrypt secured PDF 4. Merge PDFs 5. Apply old security onto new merged PDF using EncryptWithFingerprint 6. Save to disk
|
|
amitsri
Beginner Joined: 12 Sep 11 Location: INDIA Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks, I'll try and let you know soon.
|
|
amitsri
Beginner Joined: 12 Sep 11 Location: INDIA Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi,
I have tried as you suggested, function GetEncryptionFingerprint() returns Nothing in VB.Net. FYI, i am using Quick PDF Library 7.21. My Code steps are as followings: Step 1: SetAdvancePassword(<open password>) Step 2: LoadFromFile(<Filepath>) Step 3: GetEncryptionFingerprint() As per the SetAdvancePassword(), If the password is correct, the file will be automatically decrypted. Thanks, |
|
amitsri
Beginner Joined: 12 Sep 11 Location: INDIA Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi,
I got the encrypt finger print using following steps : Step 1: LoadFromFile(<FilePath>) Step 2: SetPassword(<openpassword>) Step 3: GetEncryptionFingerprint() I think, using SetAdvancePassword() is preventing to get the encrypt finger print. Thanks |
|
amitsri
Beginner Joined: 12 Sep 11 Location: INDIA Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks for the suggestions, I have successfully merged two documents as needed.
|
|
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