I am currently exploring the options of Aspose Java PDF Comparer and saw that there is a SideBySideComparer. As the name suggested it has 2 pages for every page in the PDF.
Is there a way that i can configure a comparer to just add a single page in the style of the SideBySideComparer. I also tried the TextPdfComparer, but that does not keep the original layout of the document.
Also it would be nice to be able to generate a summary page just like Adobe does.
In the documentation i could almost find nothing about the available Java classes. I had to find this by the .Net documentation and the decompiling from Intellij. Is this still in a early stage for Java?
Summary questions:
- Is there a compare like the SideBySideComparer, but then single page?
- Is it possible to create a summary page just like Adobe?
- Why is the PDF part not documented? Is this not officially released?
@MartinDiphoorn
Can you please clarify if you are looking for a specific feature in Aspose.PDF for Java that allows single page comparison similar to SideBySideComparer, or if you are asking about the general availability of such features?
I think it is about general availabilty of the comparer feature in Aspose PDF Java
@MartinDiphoorn
Aspose.PDF does not provide any utility or control to compare the PDF documents. Can you please share the link where you have seen such comparer. Please note that our online apps uses other APIs as well that are different ventures of Aspose Pty Ltd. In other words, specific functionalities like this are achieved and showcased using mixture of the APIs from Aspose and other Aspose’ Ventures like Compare documents | Documentation.
That is actually one of my questions, why isn’t in the docs. But you can find it in the release notes:
image.png (77,0 KB)
And i also wrote code with it:
void compare() throws Exception {
new License().setLicense(getResourcePath("aspose/Aspose.PDF.Java.lic"));
SideBySideComparisonOptions sideBySideComparisonOptions = new SideBySideComparisonOptions();
sideBySideComparisonOptions.setComparisonMode(1);
Document doc1 = new Document(getResourcePath(PDF1));
Document doc2 = new Document(getResourcePath(PDF2));
int pages = doc1.getPages().size();
for (int i = 1; i <= pages; i++) {
Page p1 = doc1.getPages().get_Item(i);
Page p2 = doc2.getPages().get_Item(i);
try {
SideBySidePdfComparer.compare(
p2, p1, "diff-sbs-p"+i+".pdf", sideBySideComparisonOptions);
} catch (Exception e) {
System.out.println("Skipping page " + i + ": " + e.getMessage());
}
}
System.out.println("PDF files compared successfully");
}
So i hope it will not be removed 
@MartinDiphoorn
We have created a task as PDFJAVA-44763 in our issue tracking system to gather all details and prepare documentation for this new feature. We have linked the ticket ID with this thread so that you will receive a notification as soon as it is resolved. Please be patient and spare us some time.
Is there any news on this topic?
@MartinDiphoorn
We are afraid that the ticket hasn’t been resolved yet due to other pending tasks in the queue. However, your concerns have been recorded and we will surely inform you as soon as we make some progress towards ticket resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.