red6 / pdfcompare

A simple Java library to compare two PDF files
Apache License 2.0
220 stars 66 forks source link

Encoding issue #65

Closed rsilva2 closed 4 years ago

rsilva2 commented 4 years ago

When i switched from version 1.1.40 to 1.1.44 i'm getting encoding errors, text that used to work fine are now garbled. I'm using a report in french.

for example image

appears when it should be image

finsterwalder commented 4 years ago

Interesting. At first glance that looks like a problem in PdfBox. (The library that is used to read and render the PDF documents. We upgraded from 2.0.15 to 2.0.18. Could you check out the current version of PdfCompare from Github, replace the PdfBox version 2.0.18 with version 2.0.15 in the pom.xml and try that locally?

finsterwalder commented 4 years ago

Or alternatively give me a PDF file that shows the problem?

rsilva2 commented 4 years ago

Hello sorry i was busy yesterday. I checked out the project and changed the pdfbox version to 2.0.15 and can confirm that it now works correctly.

finsterwalder commented 4 years ago

Maybe you could file a ticket for PdfBox? And send them a Pdf that shows the problem? https://issues.apache.org/jira/projects/PDFBOX

finsterwalder commented 4 years ago

Since it's a problem in PdfBox I will close this ticket here... @rsilva2 Did you file a bug with PdfBox? Could you add a link to it here?