Many times used TCPDF to create pdf'ok, everything was fine ...
But there was a task to parse an existing textual pdf-file ... as a result, when parsing any file, an error crashes:
[Exception] TCPDF_PARSER ERROR: Invalid object reference: Array (0) /tcpdf/tcpdf_parser.php:807 #0: TCPDF_PARSER->Error(string) /tcpdf/tcpdf_parser.php:680 #1: TCPDF_PARSER->getIndirectObject(string, string, boolean) /tcpdf/tcpdf_parser.php:286 #2: TCPDF_PARSER->decodeXrefStream(string, array) /tcpdf/tcpdf_parser.php:195 #3: TCPDF_PARSER->getXrefData() /tcpdf/tcpdf_parser.php:117 #4: TCPDF_PARSER->__construct(string) /Smalot/PdfParser/Parser.php:88 #5: Smalot\PdfParser\Parser->parseContent(string) /Smalot/PdfParser/Parser.php:74 #6: Smalot\PdfParser\Parser->parseFile(string) /test.php:14 At first I thought that the problem was in the files, but the bunch of files I got could not have such a problem.
there is also a suspicion that the jamb in the hyphenation symbols (\ n \ r and \ n) in the files and their incorrect reading, I dig now in this direction, but so far without any particular success.
how to fix the error?