Closed rpigneri-vol closed 2 years ago
hi mate, what engine are you using? is it graphicsmagick or native? there could be an issue with the fonts where they are not translated correctly by either engine.
tested this locally and found that for this particular set of pdfs you have sent you'll need to set disableFontFace: false
under settings.
Dear team,
Using the two attached files, we ran the following two test cases:
The top one passed, but the bottom one failed. We were expecting the first one to indicate that both files are the same, which it did. We were expecting the second test to report that the two files are different (part of the title has been removed in the text on the page), but the test reports that they are identical.
Can you help us understand if we are doing something wrong? The tests were added to the comparePdfTests.js in a local copy of this repository. We downloaded the repo from GitHub, added those two tests, put the attached files in the data/actualPdfs or data/baselinePdfs as needed, and ran the test suite. All tests from the library itself pass.
The files are attached below:
Normal file: cfb_normal.pdf
Changed file (removed text from the title on the page itself): cfb_text_change.pdf