pdfparser icon indicating copy to clipboard operation
pdfparser copied to clipboard

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

Open mbideau-atreal opened this issue 1 year ago • 4 comments

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

mbideau-atreal avatar Aug 05 '24 14:08 mbideau-atreal

Same problem. Any solution?

TilsonM17 avatar Aug 20 '24 14:08 TilsonM17

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

k00ni avatar Aug 21 '24 05:08 k00ni

@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

TilsonM17 avatar Aug 21 '24 15:08 TilsonM17

Hi, any progress on this ? Our production logs are filled with PHP Warnings because of this. Not very important, but very annoying :sweat_smile: I can help testing if needed.

Thanks in advance for any time spent on this. Best regards

mbideau-atreal avatar Nov 21 '24 16:11 mbideau-atreal