For this you’ll have to create a new class which extends the default class DifferencesPDFPresenter.
In this class you’ll have to override the method getExportStream()
.
public class PersonalDifferencesPDFPresenter extends DifferencesPDFPresenter {
@Override
protected OutputStream getExportStream() throws IOException {
return new FileOutputStream( <export file> );
}
}
Now create a pdf comparer and add the custom presenter.
new PDFComparer()
.addPresenter( personalDifferencesPDFPresenter)
.compare( <file1>, <file2> );