Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token '00000000000001588776' #223

Open
jeyaganesh opened this issue Dec 26, 2024 · 2 comments
Open

Unexpected token '00000000000001588776' #223

jeyaganesh opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jeyaganesh
Copy link

Opening a PDF document via pdfsharp fails with this error

Unexpected token '00000000000001588776' in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file (issues (at) pdfsharp.net).

xref 00000000000001588776!! %%EOF

Position marked with !! is 1589459

Version 6.2 preview 2

@StLange
Copy link
Member

StLange commented Jan 3, 2025

It seems that the 13 leading ‘0’ may confuse the parser/lexer. We will investigate.
Can you please send us the PDF file that causes the error?

@StLange
Copy link
Member

StLange commented Jan 10, 2025

We fixed the issue in Lexer.ScanNumber. Your file should work with the next release of PDFsharp (6.2.0 Preview 3).

We are still interested in getting your PDF file to add it to our internal test repo.

@ThomasHoevel ThomasHoevel added the bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants