Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal string offset 'Type' #26

Open
mrpamacs opened this issue Jun 4, 2019 · 2 comments
Open

Illegal string offset 'Type' #26

mrpamacs opened this issue Jun 4, 2019 · 2 comments

Comments

@mrpamacs
Copy link

mrpamacs commented Jun 4, 2019

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
Copy link

@brunobmorais
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants