tcpdi_parser icon indicating copy to clipboard operation
tcpdi_parser copied to clipboard

Illegal string offset 'Type'

Open mrpamacs opened this issue 6 years ago • 2 comments

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

mrpamacs avatar Jun 04 '19 12:06 mrpamacs

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

brunobmorais avatar Jul 17 '20 11:07 brunobmorais