WatermarkParams Class Documentation

class WatermarkParams : SystemIDisposable

Namespace:Datalogics::PDFL

Inherits from:
SystemIDisposable

Detailed Description

Watermark settings control the appearance of a watermark in a PDF.

Referenced by

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.

Property Documentation

FixedPrint

bool FixedPrint[get, set]

A boolean specifying whether this watermark is a FixedPrint watermark. FixedPrint watermarks maintain their size and position regardless of the dimensions of the target media.

HorizAlign

HorizontalAlignment HorizAlign[get, set]

Get the horizontal alignment to be used when adding the watermark to a page.

Defaults to center alignment.

HorizValue

float HorizValue[get, set]

The 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.

Opacity

float Opacity[get, set]

The opacity to be used when adding the watermark, with 0.0 meaning fully transparent and 1.0 meaning fully opaque.

PercentageVals

bool PercentageVals[get, set]

A 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.

Rotation

float Rotation[get, set]

The counter-clockwise rotation, in degrees, to be used when adding the watermark.

Scale

float Scale[get, set]

The scale factor to be used when adding the watermark, with 1.0 meaning 100%.

ShowOnPrint

bool ShowOnPrint[get, set]

A boolean specifying whether the watermark should be printed.

ShowOnScreen

bool ShowOnScreen[get, set]

A boolean specifying whether the watermark should be visible when viewing on screen.

TargetRange

PageRange TargetRange[get]

The page range of the document to which the watermark should be added.

Defaults to all pages.

VertAlign

VerticalAlignment VertAlign[get, set]

Get the vertical alignment to be used when adding the watermark to a page.

Defaults to center alignment.

VertValue

float VertValue[get, set]

The 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.

WatermarkDrawOption

WatermarkDrawOption WatermarkDrawOption[get, set]

Get 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.

ZOrderTop

bool ZOrderTop[get, set]

A 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.

Member Function Documentation

Dispose

void Dispose()

Returns:

void