Here is the message error that I get: ==> "Error decrypting document, details: Error: The supplied password does not match either the owner or user password in the document."
Francesc Garrido Àrea Tecnologia Pedagogia Interactiva, S.L. C/Marie Curie s/n Parc Tecnològic BCNord 08042 Barcelona T: +34 93 253 91 94 ; F: +34 93 291 76 91 www.pedagogiainteractiva.com Advertència legal / Advertencia legal / Legal Notice -----Original Message----- From: Francisco Garrido [mailto:fgarr...@pedagogiainteractiva.com] Sent: Thursday, July 09, 2009 11:54 AM To: pdfbox-dev@incubator.apache.org Subject: How to extract text from pdf with password to open for read? Importance: High I have a PDFBOX version 0.7.3 and I would like open a pdf document that have a password for read (when open file). And then, read the text to export with PDFTextStripper. How I do this? My actual code dont work: PDDocument pdfdoc = new PDDocument(); pdfdoc = PDDocument.load(IN_documentPDF); pdfdoc.decrypt("MyPassword"); Thank You very much! Francesc Garrido Àrea Tecnologia Pedagogia Interactiva, S.L. C/Marie Curie s/n Parc Tecnològic BCNord 08042 Barcelona T: +34 93 253 91 94 ; F: +34 93 291 76 91 <http://www.pedagogiainteractiva.com> www.pedagogiainteractiva.com Advertència legal / Advertencia legal / Legal Notice