empira / PDFsharp

PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
https://docs.pdfsharp.net/
Other
537 stars 133 forks source link

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

Open soul-soft opened 1 year ago

soul-soft commented 1 year ago

file

pdf

code

var pdf1 = PdfReader.Open("files/file3.pdf");
StLange commented 7 months ago

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.