smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.3k stars 534 forks source link

fix: Undefined array key 65 #639

Closed Mfdsix closed 8 months ago

Mfdsix commented 10 months ago

Type of pull request

About

Recently i found error when i try to read my pdf files. It says "Undefined array key 65" at line 705 of Page.php . So i tried to check whether the key $extractedTexts[\count($extractedData)] is exists or not.

Checklist for code / configuration changes

In case you changed the code/configuration, please read each of the following checkboxes as they contain valuable information:

k00ni commented 10 months ago

@Mfdsix Thank you for this fix! We need a small test to cover this case in the future. Can you create one?

k00ni commented 8 months ago

Closed due to no reaction.