public class

TextDiffOptions

extends OptionsBase
java.lang.Object
   ↳ com.pdftron.pdf.OptionsBase
     ↳ com.pdftron.pdf.TextDiffOptions

Summary

Public Constructors
TextDiffOptions()
Constructor.
TextDiffOptions(String json_string)
Constructor.
Public Methods
TextDiffOptions addIgnoreZonesForPage(RectCollection regions, int page_num)
Adds a collection of ignorable regions for the given page Optional list of page areas that will be not be processed
ColorPt getColorA()
Gets the value ColorA from the options object The difference color for deletions
ColorPt getColorB()
Gets the value ColorB from the options object The difference color for insertions
boolean getCompareUsingZOrder()
Gets the value CompareUsingZOrder from the options object Whether to use z-order (aka paint order) when comparing text between A and B.
double getOpacityA()
Gets the value OpacityA from the options object The difference opacity for deletions
double getOpacityB()
Gets the value OpacityB from the options object The difference opacity for insertions
TextDiffOptions setColorA(ColorPt color)
Sets the value for ColorA in the options object The difference color for deletions
TextDiffOptions setColorB(ColorPt color)
Sets the value for ColorB in the options object The difference color for insertions
TextDiffOptions setCompareUsingZOrder(boolean value)
Sets the value for CompareUsingZOrder in the options object Whether to use z-order (aka paint order) when comparing text between A and B.
TextDiffOptions setOpacityA(double opacity)
Sets the value for OpacityA in the options object The difference opacity for deletions
TextDiffOptions setOpacityB(double opacity)
Sets the value for OpacityB in the options object The difference opacity for insertions
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TextDiffOptions ()

Constructor.

public TextDiffOptions (String json_string)

Constructor.

Public Methods

public TextDiffOptions addIgnoreZonesForPage (RectCollection regions, int page_num)

Adds a collection of ignorable regions for the given page Optional list of page areas that will be not be processed

Returns
  • this object, for call chaining

public ColorPt getColorA ()

Gets the value ColorA from the options object The difference color for deletions

Returns
  • a ColorPt, The difference color for deletions in the form of R, G, B

public ColorPt getColorB ()

Gets the value ColorB from the options object The difference color for insertions

Returns
  • a ColorPt, The difference color for insertions in the form of R, G, B

public boolean getCompareUsingZOrder ()

Gets the value CompareUsingZOrder from the options object Whether to use z-order (aka paint order) when comparing text between A and B. On by default.

Returns
  • a boolean, Whether to use z-order (aka paint order) when comparing text between A and B. On by default..

public double getOpacityA ()

Gets the value OpacityA from the options object The difference opacity for deletions

Returns
  • a double, The difference opacity for deletions in between 0.0 (transparent) and 1.0 (opaque)

public double getOpacityB ()

Gets the value OpacityB from the options object The difference opacity for insertions

Returns
  • a double, The difference opacity for insertions in between 0.0 (transparent) and 1.0 (opaque)

public TextDiffOptions setColorA (ColorPt color)

Sets the value for ColorA in the options object The difference color for deletions

Returns
  • this object, for call chaining

public TextDiffOptions setColorB (ColorPt color)

Sets the value for ColorB in the options object The difference color for insertions

Returns
  • this object, for call chaining

public TextDiffOptions setCompareUsingZOrder (boolean value)

Sets the value for CompareUsingZOrder in the options object Whether to use z-order (aka paint order) when comparing text between A and B. On by default.

Returns
  • this object, for call chaining

public TextDiffOptions setOpacityA (double opacity)

Sets the value for OpacityA in the options object The difference opacity for deletions

Returns
  • this object, for call chaining

public TextDiffOptions setOpacityB (double opacity)

Sets the value for OpacityB in the options object The difference opacity for insertions

Returns
  • this object, for call chaining