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.41k stars 536 forks source link

PHP Warning: Undefined array key "FirstChar" in Smalot/PdfParser/Font.php on line 291 #731

Open mbideau-atreal opened 3 months ago

mbideau-atreal commented 3 months ago

Hi,

Same with LastChar:

PHP Warning:  Undefined array key "LastChar" in Smalot/PdfParser/Font.php on line 291

I am sorry I can't provide a sample PDF cause it is classified document.

The line is: https://github.com/smalot/pdfparser/blob/master/src/Smalot/PdfParser/Font.php#L291 The version I use is the 2.10: https://github.com/smalot/pdfparser/blob/v2.10.0/src/Smalot/PdfParser/Font.php#L291

Thanks in advance for solving this bug.

Best regards

TilsonM17 commented 2 months ago

Same problem. Any solution?

k00ni commented 2 months ago

@TilsonM17 can you provide a PDF file which triggers the error?

TilsonM17 commented 2 months ago

@k00ni yes I can. This PDF have fake data, the real PDF have sensitive information 's client. But is the same pdf layout

exe01.pdf