Foxit PDF SDK
FSComparison Class Reference
Inheritance diagram for FSComparison:
FSBase

Instance Methods

(FSCompareResults *) - doCompare:compared_page_index:compare_flags:
 Compare one page with other page.
More...
 
(id) - initWithBase_doc:compared_doc:
 Constructor, from PDF document object.
More...
 
(id) - initWithOther:
 Constructor, with another comparison object.
More...
 
(BOOL) - isEmpty
 Check whether current object is empty or not.
More...
 

Detailed Description

This class can be used to compare one PDF file (as "base document") with another PDF file (as "compared document") page by page.

Method Documentation

◆ doCompare:compared_page_index:compare_flags:()

- (FSCompareResults *) doCompare: (int)  base_page_index
compared_page_index: (int)  compared_page_index
compare_flags: (unsigned int)  compare_flags 

Compare one page with other page.

Parameters
[in]base_page_indexPage index in base document. Valid range: from 0 to (base_page_count-1). base_page_count is returned by function FSPDFDoc::getPageCount for base document.
[in]compared_page_indexPage index in compared document. Valid range: from 0 to (compared_page_count-1). compared_page_count is returned by function FSPDFDoc::getPageCount for compared document.
[in]compare_flagsCompare type which specifies what to be compared in PDF pages. Please refer to values starting from FSComparisonCompareTypeText and this can be one or combination of these values.
Returns
A FSCompareResults object.

◆ initWithBase_doc:compared_doc:()

- (id) initWithBase_doc: (FSPDFDoc*)  base_doc
compared_doc: (FSPDFDoc*)  compared_doc 

Constructor, from PDF document object.

Parameters
[in]base_docA valid PDF document object as base document.
[in]compared_docA valid PDF document object as compared document.
Note
If module "Comparison" is not defined in the license information which is used in function FSLibrary::initialize:key:, that means user has no right in using compare related functions and this constructor will throw exception FSErrInvalidLicense.

◆ initWithOther:()

- (id) initWithOther: (FSComparison*)  other

Constructor, with another comparison object.

Parameters
[in]otherAnother comparison object.

◆ isEmpty()

- (BOOL) isEmpty

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
YES means current object is empty, while NO means not.