Class: DiffOptions

PDFNet.PDFDoc. DiffOptions


new DiffOptions()

Options for PDFNet.PDFDoc.appendVisualDiff

Methods


getAddGroupAnnots()

Gets the value AddGroupAnnots from the options object Whether we should add an annot layer indicating the difference regions
Returns:
a bool, the current value for AddGroupAnnots.
Type
boolean

getBlendMode()

Gets the value BlendMode from the options object How the two colors should be blended.
Returns:
the current value for BlendMode.
Type
number
Example
Return value:
<pre>
PDFNet.GState.BlendMode = {
	e_bl_compatible : 0
	e_bl_normal : 1
	e_bl_multiply : 2
	e_bl_screen : 3
	e_bl_difference : 4
	e_bl_darken : 5
	e_bl_lighten : 6
	e_bl_color_dodge : 7
	e_bl_color_burn : 8
	e_bl_exclusion : 9
	e_bl_hard_light : 10
	e_bl_overlay : 11
	e_bl_soft_light : 12
	e_bl_luminosity : 13
	e_bl_hue : 14
	e_bl_saturation : 15
	e_bl_color : 16
}
</pre>

getColorA()

Gets the value ColorA from the options object The difference color for the first page.
Returns:
an object in form {A: number, R: number, G: number, B: number}, the current value for ColorA.
Type
object

getColorB()

Gets the value ColorB from the options object The difference color for the second page
Returns:
an object in form {A: number, R: number, G: number, B: number}, the current value for ColorB.
Type
object

getLuminosityCompression()

Gets the value LuminosityCompression from the options object
Returns:
the current value for LuminosityCompression.
Type
number

setAddGroupAnnots(value)

Sets the value for AddGroupAnnots in the options object Whether we should add an annot layer indicating the difference regions
Parameters:
Name Type Description
value boolean the new value for AddGroupAnnots
Returns:
this object, for call chaining
Type
PDFNet.PDFDoc.DiffOptions

setBlendMode(value)

Sets the value for BlendMode in the options object How the two colors should be blended.
Parameters:
Name Type Description
value number the new value for BlendMode
PDFNet.GState.BlendMode = {
	e_bl_compatible : 0
	e_bl_normal : 1
	e_bl_multiply : 2
	e_bl_screen : 3
	e_bl_difference : 4
	e_bl_darken : 5
	e_bl_lighten : 6
	e_bl_color_dodge : 7
	e_bl_color_burn : 8
	e_bl_exclusion : 9
	e_bl_hard_light : 10
	e_bl_overlay : 11
	e_bl_soft_light : 12
	e_bl_luminosity : 13
	e_bl_hue : 14
	e_bl_saturation : 15
	e_bl_color : 16
}
Returns:
this object, for call chaining
Type
PDFNet.PDFDoc.DiffOptions

setColorA(value)

Sets the value for ColorA in the options object The difference color for the first page.
Parameters:
Name Type Description
value object the new value for ColorA, in form {A: number, R: number, G: number, B: number}
Returns:
this object, for call chaining
Type
PDFNet.PDFDoc.DiffOptions

setColorB(value)

Sets the value for ColorB in the options object The difference color for the second page
Parameters:
Name Type Description
value object the new value for ColorB, in form {A: number, R: number, G: number, B: number}
Returns:
this object, for call chaining
Type
PDFNet.PDFDoc.DiffOptions

setLuminosityCompression(value)

Sets the value for LuminosityCompression in the options object
Parameters:
Name Type Description
value number the new value for LuminosityCompression.
Returns:
this object, for call chaining
Type
PDFNet.PDFDoc.DiffOptions