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 - Password Protected Files Silenty Skipped in Merge
  FAQ FAQ  Forum Search   Register Register  Login Login

Password Protected Files Silenty Skipped in Merge

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

Joined: 30 Nov 15
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote kNivens Quote  Post ReplyReply Direct Link To This Post Topic: Password Protected Files Silenty Skipped in Merge
    Posted: 30 Nov 15 at 9:52PM
I want to loop through a large set of PDF files merging them all into one new file. Some of the PDFs may be password-protected, but this is not something I know upfront. I'm using LoadFromFile with the PDF file names and passing in a blank string for the password. On password-protected files, I noticed that no error occurs when I call LoadFromFile with no password and then call MergeDocument and pass in the PDF to merge. Instead the pages for that PDF just get skipped altogether and do not appear in my output. In other PDF libraries I've used, trying to access the document data without the password would trigger an exception so these cases can be identified. What are my options if I want to use this PDF library but can have situations like this with unknown password-protected files? Is there a way to identify when the content can't get retrieved because the proper password was not used when loading the document?
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