|
Foxit PDF SDK
|
Public 类型 | |
| enum | FillSignObjectType { e_FillSignObjectTypeText = 0, e_FillSignObjectTypeCrossMark = 1, e_FillSignObjectTypeCheckMark = 2, e_FillSignObjectTypeRoundRectangle = 3, e_FillSignObjectTypeLine = 4, e_FillSignObjectTypeDot = 5, e_FillSignObjectTypeSignature = 6, e_FillSignObjectTypeInitialsSignature = 7 } |
| 填充签名对象类型的枚举。 更多... | |
Public 成员函数 | |
| FillSign (const PDFPage &page) | |
| 构造函数,从PDF页面对象构造。 更多... | |
| FillSign (const FillSign &other) | |
| 构造函数,使用另一个 FillSign 对象。 更多... | |
| ~FillSign () | |
| 析构函数。 | |
| FillSignObject | AddObject (FillSignObjectType type, const PointF &point, float width, float height, common::Rotation rotation=common::e_Rotation0) |
| 向相关PDF页面(在构造函数中使用的)添加新的填充签名对象(除了文本填充签名对象)。 更多... | |
| FillSignObject | AddTextObject (const TextFillSignObjectDataArray &text_data, const PointF &point, float width, float height, common::Rotation rotation=common::e_Rotation0, bool is_comb_field_mode=false) |
| 向相关PDF页面(在构造函数中使用的)添加新的文本填充签名对象。 更多... | |
| FillSignObject | GetObjectAtDevicePoint (const PointF &point, const Matrix &matrix) |
| 通过设备坐标系中的指定点获取填充签名对象。 更多... | |
| FillSignObject | GetObjectAtPoint (const PointF &point) |
| 通过PDF坐标系中的指定点获取填充签名对象。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | operator != (const FillSign &other) const |
| 不相等操作符。 更多... | |
| FillSign & | operator= (const FillSign &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const FillSign &other) const |
| 相等操作符。 更多... | |
| bool | RemoveObject (const FillSignObject &fillsign_object) |
| 删除指定的填充签名对象。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
填充签名是指向PDF页面填充一些图形对象并签名。此类用作填充签名对象的管理器。 用户可以使用此类向PDF页面添加/获取/删除填充签名对象(包括叉号标记、勾号标记、点、线条、圆角矩形、 签名和首字母签名)。
填充签名对象类型的枚举。
此枚举的值可以单独使用。
|
explicit |
构造函数,从PDF页面对象构造。
请确保输入的PDF页面已成功解析。
| [in] | page | 一个有效的PDF页面对象。 |
| FillSignObject foxit::pdf::FillSign::AddObject | ( | FillSignObjectType | type, |
| const PointF & | point, | ||
| float | width, | ||
| float | height, | ||
| common::Rotation | rotation = common::e_Rotation0 |
||
| ) |
向相关PDF页面(在构造函数中使用的)添加新的填充签名对象(除了文本填充签名对象)。
此函数可用于添加除类型 FillSign::e_FillSignObjectTypeText 之外的填充签名对象。 如果您想添加类型为 FillSign::e_FillSignObjectTypeText 的填充签名对象, 请调用函数 FillSign::AddTextObject。
| [in] | type | 填充签名类型,用于指定要添加的填充签名对象的类型。 请参考从 FillSign::e_FillSignObjectTypeCrossMark 开始的值, 这应该是这些值中的一个。 |
| [in] | point | 新填充签名对象的左下角点,在PDF坐标系中。 |
| [in] | width | 新填充签名对象的宽度。 |
| [in] | height | 新填充签名对象的高度。 |
| [in] | rotation | 旋转状态信息。此旋转值包括视图旋转和页面旋转属性信息。 请参考从 common::e_Rotation0 开始的值, 这应该是这些值中的一个,除了 common::e_RotationUnknown。 |
| FillSignObject foxit::pdf::FillSign::AddTextObject | ( | const TextFillSignObjectDataArray & | text_data, |
| const PointF & | point, | ||
| float | width, | ||
| float | height, | ||
| common::Rotation | rotation = common::e_Rotation0, |
||
| bool | is_comb_field_mode = false |
||
| ) |
向相关PDF页面(在构造函数中使用的)添加新的文本填充签名对象。
| [in] | text_data | 要设置到新文本填充签名对象的文本数据数组。对于每个文本填充签名对象数据, 成员text_state的origin_position将不被使用。 |
| [in] | point | 新填充签名对象的左下角点,在PDF坐标系中。 |
| [in] | width | 新填充签名对象的宽度。 |
| [in] | height | 新填充签名对象的高度。 |
| [in] | rotation | 旋转状态信息。此旋转值包括视图旋转和页面旋转属性信息。 请参考从 common::e_Rotation0 开始的值, 这应该是这些值中的一个,除了 common::e_RotationUnknown。 |
| [in] | is_comb_field_mode | 一个布尔值,用于决定是使用梳型字段模式还是普通模式:
|
| FillSignObject foxit::pdf::FillSign::GetObjectAtDevicePoint | ( | const PointF & | point, |
| const Matrix & | matrix | ||
| ) |
通过设备坐标系中的指定点获取填充签名对象。
添加类型为 FillSign::e_FillSignObjectTypeSignature 或 FillSign::e_FillSignObjectTypeInitialsSignature 的填充签名对象后, 属于同一PDF文档的所有现有填充签名对象都无法检索。
| [in] | point | 设备坐标系中的指定点。 |
| [in] | matrix | 从设备坐标系到PDF坐标系的变换矩阵。 |
| FillSignObject foxit::pdf::FillSign::GetObjectAtPoint | ( | const PointF & | point | ) |
通过PDF坐标系中的指定点获取填充签名对象。
添加类型为 FillSign::e_FillSignObjectTypeSignature 或 FillSign::e_FillSignObjectTypeInitialsSignature 的填充签名对象后, 属于同一PDF文档的所有现有填充签名对象都无法检索。
| [in] | point | PDF坐标系中的指定点。 |
| bool foxit::pdf::FillSign::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当当前对象为空时,意味着当前对象是无用的。
| bool foxit::pdf::FillSign::operator != | ( | const FillSign & | other | ) | const |
| bool foxit::pdf::FillSign::operator== | ( | const FillSign & | other | ) | const |
| bool foxit::pdf::FillSign::RemoveObject | ( | const FillSignObject & | fillsign_object | ) |
删除指定的填充签名对象。
添加类型为 FillSign::e_FillSignObjectTypeSignature 或 FillSign::e_FillSignObjectTypeInitialsSignature 的填充签名对象后, 属于同一PDF文档的所有现有填充签名对象都无法删除。在这种情况下, 如果要删除任何现有填充签名对象,此函数将返回false。
| [in] | fillsign_object | 要删除的填充签名对象。 |