WatermarkParams Class Documentation
class WatermarkParamsNamespace:datalogics_interface
Detailed Description
Watermark settings control the appearance of a watermark in a PDF.
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.
WatermarkParams
WatermarkParams(const WatermarkParams & other)Parameters
other: const WatermarkParams &
Copy constructor.
WatermarkParams
WatermarkParams(WatermarkParams && )Parameters
~WatermarkParams
~WatermarkParams()Member Function Documentation
get_draw_option
WatermarkDrawOption get_draw_option()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.
get_end_page
int get_end_page()Returns:
intThe page range of the document to which the watermark should be added.
Defaults to all pages.
get_horiz_alignment
HorizontalAlignment get_horiz_alignment()Returns:
HorizontalAlignmentGet the horizontal alignment to be used when adding the watermark to a page.
Defaults to center alignment.
get_horiz_value
float get_horiz_value()Returns:
floatWatermark settings control the appearance of a watermark in a PDF.
get_opacity
float get_opacity()Returns:
floatWatermark settings control the appearance of a watermark in a PDF.
get_page_spec
PageSpec get_page_spec()Returns:
PageSpecGet which pages the watermark targets.
get_rotation
float get_rotation()Returns:
floatWatermark settings control the appearance of a watermark in a PDF.
get_scale
float get_scale()Returns:
floatWatermark settings control the appearance of a watermark in a PDF.
get_show_on_print
bool get_show_on_print()Returns:
boolWatermark settings control the appearance of a watermark in a PDF.
get_show_on_screen
bool get_show_on_screen()Returns:
boolWatermark settings control the appearance of a watermark in a PDF.
get_start_page
int get_start_page()Returns:
intThe page range of the document to which the watermark should be added.
Defaults to all pages.
get_vert_alignment
VerticalAlignment get_vert_alignment()Returns:
VerticalAlignmentGet the vertical alignment to be used when adding the watermark to a page.
Defaults to center alignment.
get_vert_value
float get_vert_value()Returns:
floatWatermark settings control the appearance of a watermark in a PDF.
get_z_order_top
bool get_z_order_top()Returns:
boolWatermark settings control the appearance of a watermark in a PDF.
operator=
WatermarkParams & operator=(const WatermarkParams & other)Parameters
other: const WatermarkParams &
Returns:
WatermarkParams &Copy assignment.
operator=
WatermarkParams & operator=(WatermarkParams && )Parameters
Returns:
WatermarkParams &set_draw_option
void set_draw_option(WatermarkDrawOption option)Parameters
option: 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.
set_end_page
void set_end_page(int page)Parameters
page: int
Returns:
voidThe page range of the document to which the watermark should be added.
Defaults to all pages.
set_horiz_alignment
void set_horiz_alignment(HorizontalAlignment align)Parameters
align: HorizontalAlignmentThe horizontal alignment value.
Returns:
voidSet the horizontal alignment to be used when adding the watermark to a page.
set_horiz_value
void set_horiz_value(float value)Parameters
value: float
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_opacity
void set_opacity(float opacity)Parameters
opacity: float
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_page_spec
void set_page_spec(PageSpec spec)Parameters
spec: PageSpec
Returns:
voidSet which pages the watermark targets.
set_rotation
void set_rotation(float degrees)Parameters
degrees: float
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_scale
void set_scale(float scale)Parameters
scale: float
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_show_on_print
void set_show_on_print(bool show)Parameters
show: bool
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_show_on_screen
void set_show_on_screen(bool show)Parameters
show: bool
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_start_page
void set_start_page(int page)Parameters
page: int
Returns:
voidThe page range of the document to which the watermark should be added.
Defaults to all pages.
set_vert_alignment
void set_vert_alignment(VerticalAlignment align)Parameters
align: VerticalAlignmentThe vertical alignment value.
Returns:
voidSet the vertical alignment to be used when adding the watermark to a page.
set_vert_value
void set_vert_value(float value)Parameters
value: float
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.
set_z_order_top
void set_z_order_top(bool top)Parameters
top: bool
Returns:
voidWatermark settings control the appearance of a watermark in a PDF.