PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Unexpected token 'endobj'

Open abivelj opened this issue 2 years ago • 4 comments

Here's the error message: "Unexpected token 'endobj' in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file."

I believe that this is looking for "%%EOF" and instead it found "endobj".

We are creating PDFs from a scanner and then trying to upload into our application.

What can we do to fix this?

abivelj avatar Jun 27 '22 19:06 abivelj

Could you provide the PDF?

MichelMichels avatar Jul 03 '22 05:07 MichelMichels

I have the same exception. But the pdf is generated by the XnView tool - combine multiple images to single pdf. PdfSharpCore will fail on every pdf generated by the xnview. @MichelMichels can you look at the issued document? empty.pdf

k0st1x avatar Aug 18 '22 12:08 k0st1x