Public Member Functions | |
Comparison (PDFDoc base_doc, PDFDoc compared_doc) throws com.foxit.sdk.PDFException | |
Constructor, from PDF document object. More... | |
Comparison (Comparison other) | |
Constructor, with another comparison object. More... | |
CompareResults | doCompare (int base_page_index, int compared_page_index, int compare_flags) |
Compare one page with other page. More... | |
boolean | isEmpty () |
Check whether current object is empty or not. More... | |
Static Public Attributes | |
static final int | e_CompareTypeTable = 0x00000002 |
(Reserved, not supported yet) Compare table. | |
static final int | e_CompareTypeText = 0x00000001 |
Compare text only. | |
This class can be used to compare one PDF file (as "base document") with another PDF file (as "compared document") page by page.
com.foxit.sdk.addon.comparison.Comparison.Comparison | ( | PDFDoc | base_doc, |
PDFDoc | compared_doc | ||
) | throws com.foxit.sdk.PDFException |
Constructor, from PDF document object.
[in] | base_doc | A valid PDF document object as base document. |
[in] | compared_doc | A valid PDF document object as compared document. |
com.foxit.sdk.addon.comparison.Comparison.Comparison | ( | Comparison | other | ) |
Constructor, with another comparison object.
[in] | other | Another comparison object. |
CompareResults com.foxit.sdk.addon.comparison.Comparison.doCompare | ( | int | base_page_index, |
int | compared_page_index, | ||
int | compare_flags | ||
) |
Compare one page with other page.
[in] | base_page_index | Page index in base document. Valid range: from 0 to (base_page_count-1). base_page_count is returned by function pdf.PDFDoc.getPageCount for base document. |
[in] | compared_page_index | Page index in compared document. Valid range: from 0 to (compared_page_count-1). compared_page_count is returned by function pdf.PDFDoc.getPageCount for compared document. |
[in] | compare_flags | Compare type which specifies what to be compared in PDF pages. Please refer to values starting from com.foxit.sdk.addon.comparison.Comparison.e_CompareTypeText and this can be one or combination of these values. |
boolean com.foxit.sdk.addon.comparison.Comparison.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.