How to compare two PDFs and export the result

Tags: #<Tag:0x00007f70ba314368> #<Tag:0x00007f70ba314278>

First step is create a standard difference pdf presenter. We use the parent folder of the first file to store the result to.

DifferencesPDFPresenter presenter = new DifferencesPDFPresenter(<file1>.getParentFile() );

After them, use the pdf comparer add the presenter and compare then.

new PDFComparer()
            .addPresenter( presenter)
            .compare( <file1>, <file2> );

View full sourcecode

© Copyright 1996 - 2018, i-net software; All Rights Reserved.