pauln / tcpdi_parser

Parser for use with TCPDI, based on TCPDF_PARSER
GNU Lesser General Public License v3.0
27 stars 47 forks source link

Illegal string offset 'Type' #26

Open mrpamacs opened 5 years ago

mrpamacs commented 5 years ago

Dear Paul,

I can't merge the attached file because it stops with "Illegal string offset 'Type" at line 704 of the tcpdi_parser file.

protected function getRawObject($offset=0, $data=null) { if ($data == null) { $data =& $this->pdfdata; } $objtype = ''; // object type to be returned $objval = ''; // object value to be returned // skip initial white space chars: \x00 null (NUL), \x09 horizontal tab (HT), \x0A line feed (LF), \x0C form feed (FF), \x0D carriage return (CR), \x20 space (SP) while (strspn($data{$offset}, "\x00\x09\x0a\x0c\x0d\x20") == 1) { $offset++; }

Can you help me in this problem?

8436.pdf

littlepackage commented 5 years ago

This fork might solve your problem.

brunobmorais commented 4 years ago

I use the class TCPDI_PARSE to sign some PDFs, but some PDF's cannot read and simply result in an error. image