Foxit PDF SDK
|
Public Member Functions | |
constructor () | |
Constructor. | |
constructor (position, offset_x, offset_y, flags, scale_x, scale_y, rotation, opacity) | |
Constructor, with parameters. More... | |
Set (position, offset_x, offset_y, flags, scale_x, scale_y, rotation, opacity) | |
Set value. More... | |
Public Attributes | |
flags | |
Watermark flags. More... | |
offset_x | |
Horizontal offset, in points. | |
offset_y | |
Vertical offset, in points. | |
opacity | |
Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. | |
position | |
Watermark position. More... | |
rotation | |
Rotation angle in degrees. | |
scale_x | |
Horizontal scale coefficient. It should be greater than 0.001f. | |
scale_y | |
Vertical scale coefficient. It should be greater than 0.001f. | |
Static Public Attributes | |
static | e_FlagASAnnot |
If set, the watermark will be an annotation when inserted to a PDF page. | |
static | e_FlagASPageContents |
Enumeration for watermark setting flags. More... | |
static | e_FlagInvisible |
If set, do not display a watermark. | |
static | e_FlagNoPrint |
If set, do not print a watermark. | |
static | e_FlagOnTop |
If set, show watermark above other page content. | |
static | e_FlagShareImageStream |
If set, watermarks will share one image stream if these watermarks use the same image or bitmap. | |
static | e_FlagSharePageStream |
If set, watermarks will share one form xobject if these watermarks use the same page object. | |
static | e_FlagShareTextStream |
If set, watermarks will share one form xobject if these watermarks use the same text and text's related properties. | |
This class represents the watermark settings used to construct a watermark object from any supported resource.
FSDK.WatermarkSettings.constructor | ( | position | , |
offset_x | , | ||
offset_y | , | ||
flags | , | ||
scale_x | , | ||
scale_y | , | ||
rotation | , | ||
opacity | |||
) |
Constructor, with parameters.
[in] | position | Watermark position. Please refer to values starting from FSDK.e_PosTopLeft and this should be one of these values. |
[in] | offset_x | Horizontal offset, in points. |
[in] | offset_y | Vertical offset, in points. |
[in] | flags | Watermark flags. Please refer to values starting from FSDK.WatermarkSettings.e_FlagASPageContents and this can be one or a combination of these values. |
[in] | scale_x | Horizontal scale coefficient. It should be greater than 0.001f. |
[in] | scale_y | Vertical scale coefficient. It should be greater than 0.001f. |
[in] | rotation | Rotation angle in degrees. |
[in] | opacity | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |
FSDK.WatermarkSettings.Set | ( | position | , |
offset_x | , | ||
offset_y | , | ||
flags | , | ||
scale_x | , | ||
scale_y | , | ||
rotation | , | ||
opacity | |||
) |
Set value.
[in] | position | Watermark position. Please refer to values starting from FSDK.e_PosTopLeft and this should be one of these values. |
[in] | offset_x | Horizontal offset, in points. |
[in] | offset_y | Vertical offset, in points. |
[in] | flags | Watermark flags. Please refer to values starting from FSDK.WatermarkSettings.e_FlagASPageContents and this can be one or a combination of these values. |
[in] | scale_x | Horizontal scale coefficient. It should be greater than 0.001f. |
[in] | scale_y | Vertical scale coefficient. It should be greater than 0.001f. |
[in] | rotation | Rotation angle in degrees. |
[in] | opacity | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |
|
static |
Enumeration for watermark setting flags.
Values of this enumeration can be used alone or in combination. For more details about form xobjects, please refer to Section 4.9 "Form XObjects" in <PDF Reference 1.7>.
If set, the watermark will be a part of page content when inserted to a PDF page.
FSDK.WatermarkSettings.flags |
Watermark flags.
Please refer to values starting from FSDK.WatermarkSettings.e_FlagASPageContents and this can be one or a combination of these values.
FSDK.WatermarkSettings.position |
Watermark position.
Please refer to values starting from FSDK.e_PosTopLeft and this should be one of these values.