-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
15_EventMaxiumSpeed_Qualifying.PDF can't be loaded because of overly strict startxref parsing #318
Comments
Other pdf parsers seem to accept any amount of whitespace and not just a newline. |
The code that creates this error is Line 436 in ba237d1
Lines 452 to 458 in ba237d1
It only accepts EOL markers ( The relevant part of the spec is:
The spec IMO isn't perfectly accurate here, but I understand it that lopdf follows the spec in this regard (feel free to disagree). Even if this would be solved with #41, this issue should still stay opened as a reminder of what exactly needs to be addressed in #41. |
I filed an issue with the spec. |
+1 https://github.com/J-F-Liu/lopdf/blob/main/src/reader.rs#L429-L431 |
Loading http://spasummerclassic.alkamelsystems.com/Results/03_2021/01_Spa%20Summer%20Classic/320_Spa%203%20Hours/202106251945_Qualifying/15_EventMaxiumSpeed_Qualifying.PDF
gives
Error: Custom { kind: Other, error: "Invalid cross-reference table (invalid start value)" }
The text was updated successfully, but these errors were encountered: