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

fix: Undefined array key 65 #639

Closed
wants to merge 2 commits into from
Closed

fix: Undefined array key 65 #639

wants to merge 2 commits into from

Conversation

Mfdsix
Copy link

@Mfdsix Mfdsix commented Sep 5, 2023

Type of pull request

  • Bug fix (involves code and configuration changes)

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:

  • Please add at least one test case (unit test, system test, ...) to demonstrate that the change is working. If existing code was changed, your tests cover these code parts as well. By the way, you don't have to provide a full fledged PDF file to demonstrate a fix. Instead a unit test may be sufficient sometimes, please have a look at FontTest for example code. Code changes without any tests are likely to be rejected. If you dont know how to write tests, no problem, tell us upfront and we may add them ourselves or discuss other ways.
  • Please run PHP-CS-Fixer before committing, to confirm with our coding styles. See https://github.com/smalot/pdfparser/blob/master/.php-cs-fixer.php for more information about our coding styles.

@k00ni
Copy link
Collaborator

k00ni commented Sep 7, 2023

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

@k00ni
Copy link
Collaborator

k00ni commented Nov 7, 2023

Closed due to no reaction.

@k00ni k00ni closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants