Closed theFra985 closed 1 year ago
I don't know if it can be of any help but the error can be avoided with this process:
Problems caused by corrupt PDF files can usually be worked around by simply opening the file with Adobe Reader and invoking Save As from the menu. Adding and removing a password most likely has the same effect, but "saving the file" is the step that makes a difference..
I've tried saving it before but it didn't work
I have the same issue with several documents. ReSaving files in adobe reader does not solve the issue.
Thank you for your feedback and for providing the PDF file. I was able to replicate the issue. The PDF file is not corrupt. Beginning with PDFsharp 6.0.0-preview-3 (ETA not yet set), PDFsharp is able to read this file and other files with the same arrangement.
Expected Behavior
Opening the file without errors
Actual Behavior
Throws an
ArgumentOutOfRangeException
onPdfSharp.Pdf.IO.Parser.MoveToObject
Steps to Reproduce the Behavior
You only need to open a PdfReader with the given PDF I've found the error with more than a single PDF PDFsharp-ArgumentOutOfRange.zip