PDFsharp icon indicating copy to clipboard operation
PDFsharp copied to clipboard

PdfSharp.Pdf.IO.PdfReaderException:“Unexpected token 'e' in PDF stream. The file may be corrupted.

Open soul-soft opened this issue 1 year ago • 1 comments

file

pdf

code

var pdf1 = PdfReader.Open("files/file3.pdf");

soul-soft avatar Aug 24 '23 11:08 soul-soft

The specified lengths of more than 1600 streams in the PDF file are too short. This leads to the confusing error message. This is a flaw in the producer app. But PDFsharp now (in the next preview release) corrects this.

StLange avatar Apr 09 '24 16:04 StLange