|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetFlags () |
| Get watermark flags. More... | |
| def | GetIs_offset_centered () |
| Get if true, position is invaild, and offset is the centered of the watermark. More... | |
| def | GetOffset_x () |
| Get horizontal offset, in points. More... | |
| def | GetOffset_y () |
| Get vertical offset, in points. More... | |
| def | GetOpacity () |
| Get opacity in percents. More... | |
| def | GetPosition () |
| Get watermark position. More... | |
| def | GetRelative_scale_to_page () |
| Get relative scale to target page. More... | |
| def | GetRotation () |
| Get rotation angle in degrees. More... | |
| def | GetScale_x () |
| Get horizontal scale coefficient. More... | |
| def | GetScale_y () |
| Get vertical scale coefficient. More... | |
| def | Set (position, offset_x, offset_y, flags, scale_x, scale_y, rotation, opacity, is_offset_centered, relative_scale_to_page) |
| Set value. More... | |
| def | SetFlags (value) |
| Set watermark flags. More... | |
| def | SetIs_offset_centered (value) |
| Set if true, position is invaild, and offset is the centered of the watermark. More... | |
| def | SetOffset_x (value) |
| Set horizontal offset, in points. More... | |
| def | SetOffset_y (value) |
| Set vertical offset, in points. More... | |
| def | SetOpacity (value) |
| Set opacity in percents. More... | |
| def | SetPosition (value) |
| Set watermark position. More... | |
| def | SetRelative_scale_to_page (value) |
| Set relative scale to target page. More... | |
| def | SetRotation (value) |
| Set rotation angle in degrees. More... | |
| def | SetScale_x (value) |
| Set horizontal scale coefficient. More... | |
| def | SetScale_y (value) |
| Set vertical scale coefficient. More... | |
This class represents the watermark settings used to construct a watermark object from any supported resource.
| fsdk.WatermarkSettings.GetFlags | ( | ) |
Get watermark flags.
Please refer to values starting from fsdk.WatermarkSettingsE_FlagASPageContents and this can be one or a combination of these values.
| fsdk.WatermarkSettings.GetIs_offset_centered | ( | ) |
Get if true, position is invaild, and offset is the centered of the watermark.
| fsdk.WatermarkSettings.GetOffset_x | ( | ) |
Get horizontal offset, in points.
| fsdk.WatermarkSettings.GetOffset_y | ( | ) |
Get vertical offset, in points.
| fsdk.WatermarkSettings.GetOpacity | ( | ) |
Get opacity in percents.
| fsdk.WatermarkSettings.GetPosition | ( | ) |
Get watermark position.
Please refer to values starting from fsdk.E_PosTopLeft and this should be one of these values.
| fsdk.WatermarkSettings.GetRelative_scale_to_page | ( | ) |
Get relative scale to target page.
| fsdk.WatermarkSettings.GetRotation | ( | ) |
Get rotation angle in degrees.
| fsdk.WatermarkSettings.GetScale_x | ( | ) |
Get horizontal scale coefficient.
| fsdk.WatermarkSettings.GetScale_y | ( | ) |
Get vertical scale coefficient.
| def fsdk.WatermarkSettings.Set | ( | position, | |
| offset_x, | |||
| offset_y, | |||
| flags, | |||
| scale_x, | |||
| scale_y, | |||
| rotation, | |||
| opacity, | |||
| is_offset_centered, | |||
| relative_scale_to_page | |||
| ) |
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.WatermarkSettingsE_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. |
| [in] | is_offset_centered | A boolean value which indicates whether offset is based on the watermark center. true means that the offset is based on the watermark center and the position will be ignored. false means not. |
| [in] | relative_scale_to_page | Relative scale to target page. Valid range: from 0 to 1 (exclusive of 0). If the value is 0 or greater than 1, this feature is disabled and scale_x/scale_y will be used instead. |
| fsdk.WatermarkSettings.SetFlags | ( | value | ) |
Set watermark flags.
Please refer to values starting from fsdk.WatermarkSettingsE_FlagASPageContents and this can be one or a combination of these values.
| [in] | value | Watermark flags. |
| fsdk.WatermarkSettings.SetIs_offset_centered | ( | value | ) |
Set if true, position is invaild, and offset is the centered of the watermark.
| [in] | value | If true, position is invaild, and offset is the centered of the watermark. If false, offset is relative to the position. |
| fsdk.WatermarkSettings.SetOffset_x | ( | value | ) |
Set horizontal offset, in points.
| [in] | value | Horizontal offset, in points. |
| fsdk.WatermarkSettings.SetOffset_y | ( | value | ) |
Set vertical offset, in points.
| [in] | value | Vertical offset, in points. |
| fsdk.WatermarkSettings.SetOpacity | ( | value | ) |
Set opacity in percents.
| [in] | value | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |
| fsdk.WatermarkSettings.SetPosition | ( | value | ) |
Set watermark position.
Please refer to values starting from fsdk.E_PosTopLeft and this should be one of these values.
| [in] | value | Watermark position. |
| fsdk.WatermarkSettings.SetRelative_scale_to_page | ( | value | ) |
Set relative scale to target page.
| [in] | value | Relative scale to target page. Valid range: from 0 to 1 (exclusive of 0). If the value is 0 or greater than 1, this feature is disabled and scale_x/scale_y will be used instead. Default value: 0 (disabled). |
| fsdk.WatermarkSettings.SetRotation | ( | value | ) |
Set rotation angle in degrees.
| [in] | value | Rotation angle in degrees. |
| fsdk.WatermarkSettings.SetScale_x | ( | value | ) |
Set horizontal scale coefficient.
| [in] | value | Horizontal scale coefficient. It should be greater than 0.001f. |
| fsdk.WatermarkSettings.SetScale_y | ( | value | ) |
Set vertical scale coefficient.
| [in] | value | Vertical scale coefficient. It should be greater than 0.001f. |