PdfSharpCore
PdfSharpCore copied to clipboard
Unexpected token 'endobj'
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?
Could you provide the PDF?
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