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 - Append Pages from unsecured to secured pdf
  FAQ FAQ  Forum Search   Register Register  Login Login

Append Pages from unsecured to secured pdf

 Post Reply Post Reply
Author
Message
amitsri View Drop Down
Beginner
Beginner
Avatar

Joined: 12 Sep 11
Location: INDIA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitsri Quote  Post ReplyReply Direct Link To This Post Topic: Append Pages from unsecured to secured pdf
    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
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 11 at 7:10AM
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
Back to Top
amitsri View Drop Down
Beginner
Beginner
Avatar

Joined: 12 Sep 11
Location: INDIA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitsri Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 11 at 7:11AM
Thanks, I'll try and let you know soon.
Back to Top
amitsri View Drop Down
Beginner
Beginner
Avatar

Joined: 12 Sep 11
Location: INDIA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitsri Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 11 at 7:35AM
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,
Back to Top
amitsri View Drop Down
Beginner
Beginner
Avatar

Joined: 12 Sep 11
Location: INDIA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitsri Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 11 at 7:51AM
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
Back to Top
amitsri View Drop Down
Beginner
Beginner
Avatar

Joined: 12 Sep 11
Location: INDIA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitsri Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 11 at 10:02AM
Thanks for the suggestions, I have successfully merged two documents as needed.
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