-
Notifications
You must be signed in to change notification settings - Fork 536
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
Some characters are replaced with \f and \b #124
Comments
I've tracked the problem down to the Method translateChar in the Font.php Class. |
I have the same problem, but I detect that the problem is only on the First Page, apparentrly for the page 0 translateChar is not used to translate. |
I went back in time using the provided PDF and can confirm that this issue was fixed with 4f4fd10 |
This fix works great, but it's not in Font.php in the version I installed via composer. Is that still expected, or should it be in there by now? |
We had to revert that fix, because it caused problems. Reference: 1862686#diff-27bc594b24bd5e2779e8d81ee79810d0ffda03f200f0d53be007a44a9d2cb2de |
We could add Im not sure though whether we can include this sample PDF for testing, because it contains personal data... @adrianbj can you provide a sample PDF file that we can include for the unit tests? |
I tested this and it's not enough to just add |
Thanks for explaining - I don't think I am seeing any issues using |
Both example PDFs |
Hello,
Great libary. Works in most cases like a charm.
But sometimes there is a problem... Currently I've got a problem that occurs in some pdfs (not all!).
The pdf seems to be ok but the parser replaces some characters in the pdf with \f and \b.
I use the parser in a standard/simple way, see the function call below.
Here are two files. The source pdf and the txt file containing the whole pdf content (including the strange replacements).
test.pdf
tmp.txt
Would be great if somebody could help me.
Greetings Alex
The text was updated successfully, but these errors were encountered: