Comparison
-
An object that can be used to generate a comparison document between two versions of a document.
Customizing the Comparison Document
You may use the
ComparisonConfiguration
to customize the contents and the look of the generated comparison document. See its documentation for more information.Aligning the Documents
In case the two versions of a document are not perfectly aligned, the comparison processor accepts an optional transformation matrix that describes how the page in the new version of a document is aligned in relation to the page in the old version of a document.
You may either provide an already computed transformation matrix or two sets of equivalent points from both versions of a document and let the comparison processor automatically compute the transformation matrix.
You may also use the
See moreDocumentAlignmentViewController
from the PSPDFKitUI framework to initiate a process where users can visually select the two sets of points themselves. See its documentation for more information.Declaration
Objective-C
@interface PSPDFComparisonProcessor : NSObject
Swift
class ComparisonProcessor : NSObject
-
An object that encapsulates the configuration of the comparison processor.
See moreDeclaration
Objective-C
@interface PSPDFComparisonConfiguration : PSPDFBaseConfiguration <PSPDFComparisonConfigurationBuilder *>
Swift
class ComparisonConfiguration : BaseConfiguration<ComparisonConfiguration.Builder>