pdfcompare icon indicating copy to clipboard operation
pdfcompare copied to clipboard

False Diff - When I compare PDF and if it has images as formulae and they are relatively light font then that is highlighted as a difference

Open rajeshatuce opened this issue 2 years ago • 5 comments

Hey,

I am struggling with 2 false diff issue at the moment:

  1. I have 2 PDF which has many formulae as PDF which are relatively light font. Of that 1 of the formulae is getting highlighted as a difference even though on manual verification I dont find it different at all. Any idea what can be be done to resolve this issue so that its not highlighted as a difference.
  2. In 2 PDF file there is 1-2 pixel difference in space possibly. Very light red, green line like pipe symbol is getting printed in diff PDF. - which I can't spot at all with human eye is getting highlighted as difference. Any idea what can be done to fix this issue?

Thanks for reply

rajeshatuce avatar Jul 06 '22 07:07 rajeshatuce

Update - If I retry couple of times then same comparison passes. Any idea why is the issue? I am using version 1.1.61 ?

rajeshatuce avatar Jul 06 '22 09:07 rajeshatuce

No idea really. It all depends on the pixel-rendering that the PDF-Library PdfBox does. Embedded Elements may be tricky to render for the library.

finsterwalder avatar Jul 06 '22 14:07 finsterwalder

Good day, we have been having the same random fails and they have disappeared when we disabled the parallel processing by adding parallelProcessing=false to the configuration.

We tested the random fails by comparing multiple times the same files via the CLI, after disabling parallel processing none of the executions reported an incorrect difference again.

nisckis avatar Oct 11 '22 10:10 nisckis

@nisckis Is there a way to set this flag via CLI ?

rkgour7492 avatar Jan 31 '23 06:01 rkgour7492

Please check the readme: https://github.com/red6/pdfcompare#configuring-pdfcompare -DparallelProcessing=false should do it.

finsterwalder avatar Jan 31 '23 11:01 finsterwalder