public class SideBySidePdfComparer extends Object
Constructor and Description |
---|
SideBySidePdfComparer() |
Modifier and Type | Method and Description |
---|---|
static void |
compare(Document document1,
Document document2,
String targetPdfPath,
SideBySideComparisonOptions options)
Compares two documents.
|
static void |
compare(Page page1,
Page page2,
String targetPdfPath,
SideBySideComparisonOptions options)
Compares two pages.
|
public static void compare(Page page1, Page page2, String targetPdfPath, SideBySideComparisonOptions options)
Compares two pages. The result is saved in a PDF document in which the first page is written first, and then the second. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.
page1
- The first page to compare.page2
- The first page to compare.targetPdfPath
- The path to PDF-file to save a comparison result.options
- The comparison options.public static void compare(Document document1, Document document2, String targetPdfPath, SideBySideComparisonOptions options)
Compares two documents. The pages are compared one by one. The pages of the compared documents are copied one after another into the resulting document. First the first page from the first document, then the first page from the second document. Next is the second one from the first document and then the second one from the second document, etc. You can open it in Adobe Acrobat in Two-page view to see the changes side by side. Deletions are noted on the page on the left, and insertions are noted on the page on the right.
document1
- The first document to compare.document2
- The second document to compare.targetPdfPath
- The path to PDF-file to save a comparison result.options
- The comparison options.Copyright © 2025 Aspose. All Rights Reserved.