|
Foxit PDF SDK
|
Public 成员函数 | |
| def | GetAlignment () |
| Get 文本水平对齐方式。默认值为fsdk.E_AlignmentLeft 。 更多... | |
| def | GetColor () |
| Get 文本颜色。格式:0xRRGGBB。默认值为0x000000。 更多... | |
| def | GetFont () |
| Get 用于文本的字体对象。 更多... | |
| def | GetFont_size () |
| Get 字体大小,以点为单位。默认值为24. 更多... | |
| def | GetFont_style () |
| Get 字体样式。默认值为fsdk.WatermarkTextPropertiesE_FontStyleNormal 。 更多... | |
| def | GetLine_space () |
| Get 行间距,以行高为单位。默认值为1. 更多... | |
| def | Set (font, font_size, color, style, line_space, alignment) |
| 设置值。 更多... | |
| def | SetAlignment (value) |
| Set 文本水平对齐方式。默认值为fsdk.E_AlignmentLeft 。 更多... | |
| def | SetColor (value) |
| Set 文本颜色。格式:0xRRGGBB。默认值为0x000000。 更多... | |
| def | SetFont (value) |
| Set 用于文本的字体对象。 更多... | |
| def | SetFont_size (value) |
| Set 字体大小,以点为单位。默认值为24. 更多... | |
| def | SetFont_style (value) |
| Set 字体样式。默认值为fsdk.WatermarkTextPropertiesE_FontStyleNormal 。 更多... | |
| def | SetLine_space (value) |
| Set 行间距,以行高为单位。默认值为1. 更多... | |
此类表示用于从文本构造水印对象的水印文本设置。
| fsdk.WatermarkTextProperties.GetAlignment | ( | ) |
| fsdk.WatermarkTextProperties.GetColor | ( | ) |
Get 文本颜色。格式:0xRRGGBB。默认值为0x000000。
| fsdk.WatermarkTextProperties.GetFont | ( | ) |
Get 用于文本的字体对象。
| fsdk.WatermarkTextProperties.GetFont_size | ( | ) |
Get 字体大小,以点为单位。默认值为24.
| fsdk.WatermarkTextProperties.GetFont_style | ( | ) |
| fsdk.WatermarkTextProperties.GetLine_space | ( | ) |
Get 行间距,以行高为单位。默认值为1.
此值用于指定行间距的行高倍数。 有效范围:从0到10(不包括0但包括10)。如果此值大于10,将使用10 作为文本水印的默认值。
| def fsdk.WatermarkTextProperties.Set | ( | font, | |
| font_size, | |||
| color, | |||
| style, | |||
| line_space, | |||
| alignment | |||
| ) |
设置值。
参数line_space和alignment不支持平铺水印,设置后将无效果。
| [in] | font | 用于文本的有效字体对象。 |
| [in] | font_size | 字体大小,以点为单位。 |
| [in] | color | 文本颜色。格式:0xRRGGBB。 |
| [in] | style | 字体样式。应为以下值之一: |
| [in] | line_space | 行间距,以行高为单位。此值指定行间距的行高倍数。 有效范围:从0到10(不包括0但包括10)。如果此值大于10, 将使用10作为文本水印的默认值。 |
| [in] | alignment | 文本水平对齐方式。应为以下值之一: |
| fsdk.WatermarkTextProperties.SetAlignment | ( | value | ) |
Set 文本水平对齐方式。默认值为fsdk.E_AlignmentLeft 。
应为以下宏定义之一:
| [in] | value | 文本水平对齐方式。默认值为fsdk.E_AlignmentLeft 。 |
| fsdk.WatermarkTextProperties.SetColor | ( | value | ) |
Set 文本颜色。格式:0xRRGGBB。默认值为0x000000。
| [in] | value | 文本颜色。格式:0xRRGGBB。默认值为0x000000。 |
| fsdk.WatermarkTextProperties.SetFont | ( | value | ) |
Set 用于文本的字体对象。
| [in] | value | 用于文本的字体对象。 |
| fsdk.WatermarkTextProperties.SetFont_size | ( | value | ) |
Set 字体大小,以点为单位。默认值为24.
| [in] | value | 字体大小,以点为单位。默认值为24.0。 |
| fsdk.WatermarkTextProperties.SetFont_style | ( | value | ) |
Set 字体样式。默认值为fsdk.WatermarkTextPropertiesE_FontStyleNormal 。
应为以下值之一:
| [in] | value | 字体样式。默认值为fsdk.WatermarkTextPropertiesE_FontStyleNormal 。 |
| fsdk.WatermarkTextProperties.SetLine_space | ( | value | ) |
Set 行间距,以行高为单位。默认值为1.
此值用于指定行间距的行高倍数。 有效范围:从0到10(不包括0但包括10)。如果此值大于10,将使用10 作为文本水印的默认值。
| [in] | value | 行间距,以行高为单位。默认值为1.0。 |