Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open encrypted pdf issue #139

Open
Olek-HZQ opened this issue Feb 21, 2024 · 0 comments
Open

Open encrypted pdf issue #139

Olek-HZQ opened this issue Feb 21, 2024 · 0 comments

Comments

@Olek-HZQ
Copy link

Olek-HZQ commented Feb 21, 2024

Summary of the issue

Open encrypted pdf issue

Environment

windows 11

iTextSharp.LGPLv2.Core version: 3.4.17
.NET Core SDK version: .net 6
IDE: vs 2022

Example code/Steps to reproduce:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant