|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetFlags () |
| Get watermark flags. 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 | 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) |
| Set value. More... | |
| def | SetFlags (value) |
| Set watermark flags. 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 | 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.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.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 | |||
| ) |
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. |
| 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.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.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. |