PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

PDF document is protected with an encryption not support-1.7
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3757
Page 1 of 1

Author:  basar.niron [ Tue Apr 03, 2018 4:03 pm ]
Post subject:  PDF document is protected with an encryption not support-1.7

Hi,

We have been experiencing the following error for some of the pdf files.

PdfSharp.Pdf.IO.PdfReaderException: The PDF document is protected with an encryption not supported by PDFsharp.
at PdfSharp.Pdf.Security.PdfStandardSecurityHandler.ValidatePassword(String inputPassword)
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, PdfDocumentOpenMode openmode)

Based on the following FAQ statement;
"PDFsharp 1.50 should be able to open all files marked for PDF 1.5 or higher even if they contain IRef streams (see Roadmap) - please submit files that cannot be opened."
I wanted to attached the pdf files but, one was too big and the other was recognized as invalid.
Anyways, I checked both pdf files with var res = PdfReader.TestPdfFile(stream); and it returns 17 for both (I assume it means v 1.7). Once both files are downloaded, in their security properties "unblock" option are seen (windows). Please see the 9DF7DC8B.PNG attachement for this.

If you need to check the pdf files please let me know how I should be sending them to you.

Waiting for your response.

Regards,
Basar

Attachments:
9DF7DC8B.PNG
9DF7DC8B.PNG [ 52.99 KiB | Viewed 7866 times ]

Author:  Thomas Hoevel [ Tue Apr 03, 2018 4:28 pm ]
Post subject:  Re: PDF document is protected with an encryption not support

Hi!

"Unblock" is a Windows feature for all files, not just PDF.

Re Encryption:
viewtopic.php?p=11537#p11537

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/