PSPDFComparisonConfiguration

Objective-C


@interface PSPDFComparisonConfiguration
    : PSPDFBaseConfiguration <PSPDFComparisonConfigurationBuilder *>

Swift

class ComparisonConfiguration : BaseConfiguration<ComparisonConfiguration.Builder>

An object that encapsulates the configuration of the comparison processor.

  • The color that will be used to replace all strokes in the old version of a document. If nil, the stroke color won’t be replaced.

    Default: .red.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) UIColor *oldDocumentStrokeColor;

    Swift

    var oldDocumentStrokeColor: UIColor? { get }
  • The color that will be used to replace all strokes in the new version of a document. If nil, the stroke color won’t be replaced.

    Default: .green.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) UIColor *newDocumentStrokeColor;

    Swift

    var newDocumentStrokeColor: UIColor? { get }
  • The blend mode that will be used when overlaying the new version of a document onto the old version.

    Default: .darken.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGBlendMode blendMode;

    Swift

    var blendMode: CGBlendMode { get }
  • The URL of a directory that will be used to write temporary files when generating the comparison document. If nil, processing will be done in memory, which might be inefficient with larger documents.

    Default: NSTemporaryDirectory().

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *workingDirectory;

    Swift

    var workingDirectory: URL? { get }