|
|
|
|
|
by mdaniel
1308 days ago
|
|
I never knew about the J number suffix in python: https://docs.python.org/3/reference/lexical_analysis.html#im... which it would appear is used to represent references: https://github.com/desgeeko/pdfsyntax/blob/main/tests/test_p... I wish you good luck, this file format has tripped up many, many a developer. It blew up on a pdf I had lying around: ValueError: could not convert string to float: b'5.0.0'
104 0 obj <<
/Producer (pdfTeX-1.40.10)
/Creator (TeX)
/CreationDate (D:20131209161146-08'00')
/ModDate (D:20131209161146-08'00')
/Trapped /False
/PTEX.Fullbanner (This is pdfTeX, Version 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) kpathsea version 5.0.0)
>> endobj
as it seems a string with nested parens jams up the parser |
|
https://github.com/mozilla/pdf.js/tree/master/test/pdfs