Print Page | Close Window

Extracting text from a password protected document

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=1578
Printed Date: 06 May 25 at 4:19PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Extracting text from a password protected document
Posted By: robinto
Subject: Extracting text from a password protected document
Date Posted: 22 Sep 10 at 10:51AM
Hello,

I cannot extract text from a password protected PDF file by calling the ExtractFilePageText() method. I use the latest DLL version in C#.
The password was set in Adobe Acrobat 9, the compatibility to "Acrobat 7 or later". The ExtractFilePageText() returns an empty string. When I remove the password protection, everything works fine. Am I doing something wrong or is it a known bug/feature, please?
Thanks in advance.



Replies:
Posted By: robinto
Date Posted: 22 Sep 10 at 12:43PM
I found a solution: I open the document with LoadFromFile() and extract text by calling GetPageText().



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