-
Notifications
You must be signed in to change notification settings - Fork 539
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
PDF only being partly read. #474
Comments
TBH only started with these invoice PDFs recently - previous files have been fine but noticed issues when trying to parse these particular client files. Was using an old version but upgraded to recent build and issues the same. |
Found problem - ET present in textCleaned so screwing with preg_match_all: The following change gets around the problem but don't think it is a suitable fix.
|
Output from cleanContent which shows ET : 58.03 288.9 485.01 10.01 re |
This change seems to be the solution as ET should always be followed by newline? if (preg_match_all('/\s+BT[\s|(|[]+(.?)\sET\n/s', $textCleaned, $matches, PREG_OFFSET_CAPTURE)) { |
If you think its a sustainable solution please send us a pull request and we can discuss details there. |
@bclarkson72 can you please test if #533 fixes your problem? |
Have many PDF invoices that are able to be read fine by the library. But the odd one just does not return the full document
Reads Fine.pdf
Bad Read.pdf
I cannot see any difference in the files at all.
The text was updated successfully, but these errors were encountered: