You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var reader = new iTextSharp.text.pdf.PdfReader(sourcePdfPath, Encoding.UTF8.GetBytes("password"));
Output:
Message:
iTextSharp.text.exceptions.UnsupportedPdfException : Unknown encryption type R = 5
Stack Trace:
PdfReader.readDecryptedDocObj() line 4265
PdfReader.ReadDocObj() line 2907
PdfReader.ReadPdf() line 3138
PdfReader.ctor(String filename, Byte[] ownerPassword) line 161
Exception message: Unknown encryption type R = 5
Full Stack trace: Stack Trace:
PdfReader.readDecryptedDocObj() line 4265
PdfReader.ReadDocObj() line 2907
PdfReader.ReadPdf() line 3138
PdfReader.ctor(String filename, Byte[] ownerPassword) line 161
The text was updated successfully, but these errors were encountered:
Summary of the issue
Open encrypted pdf issue
Environment
windows 11
Example code/Steps to reproduce:
Output:
Message:
iTextSharp.text.exceptions.UnsupportedPdfException : Unknown encryption type R = 5
Stack Trace:
The text was updated successfully, but these errors were encountered: