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

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

Open
mbideau-atreal opened this issue Aug 5, 2024 · 4 comments
Labels

Comments

@mbideau-atreal
Copy link
Contributor

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

@k00ni k00ni added the bug label Aug 5, 2024
@TilsonM17
Copy link

Same problem. Any solution?

@k00ni
Copy link
Collaborator

k00ni commented Aug 21, 2024

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

@TilsonM17
Copy link

@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

@mbideau-atreal
Copy link
Contributor Author

mbideau-atreal commented Nov 21, 2024

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

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

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

No branches or pull requests

3 participants