I am currently trying to compare two PDFs with minor differences in Java, and storing the result in an output PDF. Generally whichever solution available out there merges the two PDFs into one, and highlights the differences then and there, which is not the business requirement. For this purpose, I am looking for some open source solution or any form of suggestion to this, where the differences of the two PDFs are highlighted, and stored in an output PDF with the two PDFs retained and the differences are highlighted in them separately.
I have tried compare functionality of PDFBox, but the issue I found there with respect to my requirement is that, it is merging the two PDFs into one, and the differences are highlighted in that single PDF, which appears kind of messy.
Aspose's solution seemed impressive although it again returns in a single PDF file but is more structured - but my organisation doesn't allow access to their API due to security reasons.