IronPdf / Iron-Pdf-Documentation

ReadTheDocs Build Files for IronPDF C#/.Net PDF Library http://ironpdf.com
8 stars 2 forks source link

IronPdf not extracting text from pdf when pdf is signed #13

Open joey0xx opened 4 years ago

joey0xx commented 4 years ago

I need to extract text from PDF files that have been signed using adobe reader, but it gives me the following error:

System.IO.IOException: 'PDF can not be opened as a PDF.  May be an incorrect file type or a password is required.
Please check file for corruption or validity by a 3rd party at: https://www.pdf-online.com/osa/validate.aspx'

ArgumentException: A password is required to open the PDF document.

Here Im attaching a full example where the issue is recreated. We have a simple pdf with a Hello text that we converted from a .docx. Then the same file but it was signed using adobe reader, no added passwords. The signed one is giving the error. Full Example.zip

iron-production-team commented 3 years ago

Thanks, did you contact IronPd support team and raise a ticket? https://ironsoftware.com/contact-us/