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

Calling PdfReader.Open -> InvalidOperationException: Cannot retrieve stream length. #453

Open
sebastianhille opened this issue Aug 30, 2024 · 0 comments

Comments

@sebastianhille
Copy link

For a specific set of documents I get the error "InvalidOperationException: Cannot retrieve stream length." that is thrown in the method "private int GetStreamLength(PdfDictionary dict)" from the class "PdfSharpCore/Pdf.IO/Parser.cs". In the github code for that method I also see the comment "// HACK: Solve problem more general.", so I assume that there could be an issue and I so happen to encounter this issue.
Anyone else got this problem with specific pdf documents? Is there a workaround?
Sadly I can't provide the documents where we encounter the error.

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