I am comparing two PDF documents and getting the output in a result file. If both the PDF alignment is same then the difference is shown correctly, but if the alignment is not same of the two PDf files then the content is overlapping.
Could any one advise on this, below is the code to compare the PDFD files. Thank You!
import de.redsix.pdfcompare.PdfComparator;
public class Test1 {
public static void main(String[] args) throws Exception {
String file1 = "C://Users//TEST1.pdf";
String file2 = "C://Users//TEST.pdf";
String resultFile = "C://Users//Results//result";
new PdfComparator( file1, file2 ).compare().writeTo( resultFile);
boolean isEquals = new PdfComparator( file1, file2 ).compare().writeTo( resultFile);
System.out.println("Are PDF Files Similar : " + isEquals);
System.out.println("Process Completed");
}
}