|
Foxit PDF SDK
|
Public Types | |
| enum | CompareType { CompareType.e_CompareTypeAll = 0x00000000, CompareType.e_CompareTypeText = 0x00000001 } |
| Enumeration for compare type flags. More... | |
Public Member Functions | |
| Comparison (PDFDoc base_doc, PDFDoc compared_doc) | |
| 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 a PDF page of base document with a PDF page in compared document. "base document" and "compared document" means the PDF documents objects that aredused to construct current object. More... | |
| PDFDoc | GenerateComparedDoc (int compare_flags) |
| Compare the base document with compared document (which are used to construct current object) and then generate a PDF document as comparison result. More... | |
| bool | IsEmpty () |
| Check whether current object is empty or not. More... | |
This class can be used to compare one PDF file (as "base document") with another PDF file (as "compared document") page by page.
|
strong |
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. |
|
inline |
Constructor, with another comparison object.
| [in] | other | Another comparison object. |
|
inline |
Compare a PDF page of base document with a PDF page in compared document. "base document" and "compared document" means the PDF documents objects that aredused to construct current object.
| [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 foxit.addon.comparison.Comparison.CompareType.e_CompareTypeAll and this can be one or combination of some of these values. |
|
inline |
Compare the base document with compared document (which are used to construct current object) and then generate a PDF document as comparison result.
It may take a long time to compare content of two PDF documents and generate the new PDF document.
| [in] | compare_flags | Compare type which specifies what to be compared in PDF pages. Please refer to values starting from foxit.addon.comparison.Comparison.CompareType.e_CompareTypeAll and this can be one or combination of some of these values. |
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.