Print Page | Close Window

Password Protected Files Silenty Skipped in Merge

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3219
Printed Date: 04 Apr 26 at 7:52PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Password Protected Files Silenty Skipped in Merge
Posted By: kNivens
Subject: Password Protected Files Silenty Skipped in Merge
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk