WatermarkParams Class Documentation
class WatermarkParamsNamespace:com::datalogics::PDFL
Detailed Description
Watermark settings control the appearance of a watermark in a PDF.
Referenced by
Uses types
Constructor & Destructor Documentation
WatermarkParams
WatermarkParams()Construct default WatermarkParams. Initializes with rotation 0, full page range, opacity 1.0, scale 0.5, zOrderTop true, showOnPrint true, showOnScreen true, centered alignment, and the TryAnnotation draw option.
Member Function Documentation
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidfinalize
void finalize()Returns:
voidgetFixedPrint
boolean getFixedPrint()Returns:
booleanA boolean specifying whether this watermark is a FixedPrint watermark. FixedPrint watermarks maintain their size and position regardless of the dimensions of the target media.
getHorizAlign
HorizontalAlignment getHorizAlign()Returns:
HorizontalAlignmentGet the horizontal alignment to be used when adding the watermark to a page. Defaults to center alignment.
getHorizValue
float getHorizValue()Returns:
floatThe horizontal offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page width, with 1.0 meaning 100%. Otherwise this value is in user units.
getOpacity
float getOpacity()Returns:
floatThe opacity to be used when adding the watermark, with 0.0 meaning fully transparent and 1.0 meaning fully opaque.
getPercentageVals
boolean getPercentageVals()Returns:
booleanA boolean specifying the units of horizValue and vertValue. If it is true, horizValue and vertValue represent percentages of the page dimensions. Otherwise horizValue and vertValue are in user units.
getRotation
float getRotation()Returns:
floatThe counter-clockwise rotation, in degrees, to be used when adding the watermark.
getScale
float getScale()Returns:
floatThe scale factor to be used when adding the watermark, with 1.0 meaning 100%.
getShowOnPrint
boolean getShowOnPrint()Returns:
booleanA boolean specifying whether the watermark should be printed.
getShowOnScreen
boolean getShowOnScreen()Returns:
booleanA boolean specifying whether the watermark should be visible when viewing on screen.
getTargetRange
PageRange getTargetRange()Returns:
PageRangeThe page range of the document to which the watermark should be added. Defaults to all pages.
getVertAlign
VerticalAlignment getVertAlign()Returns:
VerticalAlignmentGet the vertical alignment to be used when adding the watermark to a page. Defaults to center alignment.
getVertValue
float getVertValue()Returns:
floatThe vertical offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page height, with 1.0 meaning 100%. Otherwise this value is in user units.
getWatermarkDrawOption
WatermarkDrawOption getWatermarkDrawOption()Returns:
WatermarkDrawOptionGet the draw option to be used when adding the watermark to a page. Controls whether the watermark is drawn as an annotation or form XObject.
getZOrderTop
boolean getZOrderTop()Returns:
booleanA boolean specifying where in the page z-order the watermark should be added. If it is true, the watermark is added to the front of the page; otherwise, it is added as a background.
This parameter is ignored if fixedPrint is true, as all FixedPrint watermarks are added to the front of the page.
setFixedPrint
void setFixedPrint(boolean value)Parameters
value: boolean
Returns:
voidA boolean specifying whether this watermark is a FixedPrint watermark. FixedPrint watermarks maintain their size and position regardless of the dimensions of the target media.
setHorizAlign
void setHorizAlign(HorizontalAlignment h)Parameters
h: HorizontalAlignmentThe horizontal alignment value.
Returns:
voidSet the horizontal alignment to be used when adding the watermark to a page.
setHorizValue
void setHorizValue(float value)Parameters
value: float
Returns:
voidThe horizontal offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page width, with 1.0 meaning 100%. Otherwise this value is in user units.
setOpacity
void setOpacity(float value)Parameters
value: float
Returns:
voidThe opacity to be used when adding the watermark, with 0.0 meaning fully transparent and 1.0 meaning fully opaque.
setPercentageVals
void setPercentageVals(boolean value)Parameters
value: boolean
Returns:
voidA boolean specifying the units of horizValue and vertValue. If it is true, horizValue and vertValue represent percentages of the page dimensions. Otherwise horizValue and vertValue are in user units.
setRotation
void setRotation(float value)Parameters
value: float
Returns:
voidThe counter-clockwise rotation, in degrees, to be used when adding the watermark.
setScale
void setScale(float value)Parameters
value: float
Returns:
voidThe scale factor to be used when adding the watermark, with 1.0 meaning 100%.
setShowOnPrint
void setShowOnPrint(boolean value)Parameters
value: boolean
Returns:
voidA boolean specifying whether the watermark should be printed.
setShowOnScreen
void setShowOnScreen(boolean value)Parameters
value: boolean
Returns:
voidA boolean specifying whether the watermark should be visible when viewing on screen.
setVertAlign
void setVertAlign(VerticalAlignment v)Parameters
v: VerticalAlignmentThe vertical alignment value.
Returns:
voidSet the vertical alignment to be used when adding the watermark to a page.
setVertValue
void setVertValue(float value)Parameters
value: float
Returns:
voidThe vertical offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page height, with 1.0 meaning 100%. Otherwise this value is in user units.
setWatermarkDrawOption
void setWatermarkDrawOption(WatermarkDrawOption drawoption)Parameters
drawoption: WatermarkDrawOptionThe watermark draw option.
Returns:
voidSet the draw option to be used when adding the watermark to a page. Controls whether the watermark is drawn as an annotation or form XObject.
setZOrderTop
void setZOrderTop(boolean value)Parameters
value: boolean
Returns:
voidA boolean specifying where in the page z-order the watermark should be added. If it is true, the watermark is added to the front of the page; otherwise, it is added as a background.
This parameter is ignored if fixedPrint is true, as all FixedPrint watermarks are added to the front of the page.