Open tommynovember7 opened 6 years ago
I have the same problem. Did you find a solution?
@mrpamacs Actually I already created the PR for the issue, but it still haven't been merged. You might want to fork the repository and apply that change If you want to resolve the issue as soon as possible.
Some PDF files TCPDI cannot read
If a pdf has such an object like the followings,
tcpdf_parser
fails to continue parsing the data.getRawObject()
is expected to return an array which contains an object and its offset, but it currently returns an object without its offset if the pdf has%
comments. It causes Illegal string offset warnings.https://github.com/pauln/tcpdi_parser/blob/c7c3e86cd1a15c293ae8246d32caaae3e8b27db6/tcpdi_parser.php#L725
I've created a compact example. Would you please check it? tcpdi_parser_issue.tar.gz
Additionally, I've created a PR. I'll be grateful if you'd review it.
https://github.com/pauln/tcpdi_parser/pull/23