Is there an existing issue for this?
Are you using the latest version of this package?
Can other PDF readers read the file?
When running this snippet
$document = (new PdfParser())->parseFile('/path/to/file.pdf');
I run into the following issue/exception (Please attach the pdf)
Value "91 0 R" for dictionary key LastChar could not be parsed to a valid value type
What it is: The error points to a Font dictionary entry. /LastChar must be an integer. Here it is 91 0 R, an indirect object reference, which the parser can’t turn into a valid integer.
Role: Together with /FirstChar, /LastChar defines the character-code range covered by /Widths for simple fonts (Type1/TrueType). Not used for CID/Type 0 fonts.
Where to find it: In a font object under a page’s /Resources → /Font.
Why it fails: The library expects a number, not a reference - or the referenced object isn't a number.
Do you allow attachment files to be used in tests to prevent regressions?
Is there an existing issue for this?
Are you using the latest version of this package?
Can other PDF readers read the file?
When running this snippet
I run into the following issue/exception (Please attach the pdf)
Value "91 0 R" for dictionary key LastChar could not be parsed to a valid value type
What it is: The error points to a Font dictionary entry. /LastChar must be an integer. Here it is 91 0 R, an indirect object reference, which the parser can’t turn into a valid integer.
Role: Together with /FirstChar, /LastChar defines the character-code range covered by /Widths for simple fonts (Type1/TrueType). Not used for CID/Type 0 fonts.
Where to find it: In a font object under a page’s /Resources → /Font.
Why it fails: The library expects a number, not a reference - or the referenced object isn't a number.
Do you allow attachment files to be used in tests to prevent regressions?