|
Foxit PDF SDK
|
Public 类型 | |
| enum | AnnotType { e_AnnotTypeUnknown = 0, e_AnnotTypeLink = 1, e_AnnotTypePath = 2, e_AnnotTypeHighlight = 3, e_AnnotTypeStamp = 4, e_AnnotTypeWatermark = 5, e_AnnotTypeWidget = 6 } |
| OFD标注类型定义枚举类型. 更多... | |
Public 成员函数 | |
| Annot (const Annot &other) | |
| 构造函数,通过另一个OFD标注对象。 更多... | |
| ~Annot () | |
| 析构函数。 | |
| graphics::OFDGraphicsObject | AddAppearanceObject (graphics::OFDGraphicsObject::ObjectType type) |
| 添加标注外观图元对象。 更多... | |
| graphics::OFDGraphicsObject | AddBlockAppearanceObject () |
| 添加标注外观块图元对象。 更多... | |
| void | EnablePrintable (bool printable) |
| 设置标注是否可打印。 更多... | |
| void | EnableReadOnly (bool read_only) |
| 设置标注是否只读。 更多... | |
| void | EnableVisible (bool visible) |
| 设置标注是否可见。 更多... | |
| Actions | GetActions () |
| 获取标注的动作集合。 更多... | |
| graphics::OFDGraphicsObject | GetAppearanceObject (int index) |
| 获取标注外观中的图元对象。 更多... | |
| int | GetAppearanceObjectCount () |
| 获取标注外观中的图元对象数量。 更多... | |
| foxit::RectF | GetBoundary () |
| 获取标注外接矩形框。 更多... | |
| String | GetCreator () |
| 获取标注创建者。 更多... | |
| foxit::uint32 | GetID () |
| 获取标注的ID。 更多... | |
| String | GetSubtype () |
| 获取标注子类型。 更多... | |
| AnnotType | GetType () |
| 获取标注类型。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | IsPrintable () |
| 判断标注是否可打印。 更多... | |
| bool | IsReadOnly () |
| 判断标注是否只读。 更多... | |
| bool | IsVisible () |
| 判断标注是否可见。 更多... | |
| bool | operator != (const Annot &other) const |
| 不相等操作符。 更多... | |
| Annot & | operator= (const Annot &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const Annot &other) const |
| 相等操作符。 更多... | |
| void | SetBoundary (const foxit::RectF &rect) |
| 设置标注外接矩形框。 更多... | |
| void | SetCreator (const String &creator) |
| 设置标注创建者。 更多... | |
| void | SetLastModDate (const foxit::DateTime &date_time) |
| 设置标注最后修改日期时间。 更多... | |
| void | SetLinkUri (const String &uri) |
| 设置链接URI。 更多... | |
| void | SetSubtype (const String &subtype) |
| 设置标注子类型。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
此类表示和OFD标注对象相关的方法
| foxit::ofd::Annot::Annot | ( | const Annot & | other | ) |
构造函数,通过另一个OFD标注对象。
| [in] | other | 另一个OFD标注对象。 |
| graphics::OFDGraphicsObject foxit::ofd::Annot::AddAppearanceObject | ( | graphics::OFDGraphicsObject::ObjectType | type | ) |
添加标注外观图元对象。
| [in] | type | 图元对象类型。请参考从 foxit::ofd::graphics::OFDGraphicsObject::e_ObjectTypeUnknown 开始的值, 应该是这些值中的一个。 |
| graphics::OFDGraphicsObject foxit::ofd::Annot::AddBlockAppearanceObject | ( | ) |
添加标注外观块图元对象。
| void foxit::ofd::Annot::EnablePrintable | ( | bool | printable | ) |
设置标注是否可打印。
| [in] | printable | 是否可打印。 |
| void foxit::ofd::Annot::EnableReadOnly | ( | bool | read_only | ) |
设置标注是否只读。
| [in] | read_only | 是否只读。 |
| void foxit::ofd::Annot::EnableVisible | ( | bool | visible | ) |
设置标注是否可见。
| [in] | visible | 是否可见。 |
| Actions foxit::ofd::Annot::GetActions | ( | ) |
获取标注的动作集合。
| graphics::OFDGraphicsObject foxit::ofd::Annot::GetAppearanceObject | ( | int | index | ) |
获取标注外观中的图元对象。
| [in] | index | 标注外观中的图元对象索引号。有效范围:从0到(count-1)。 count 由函数 Annot::GetAppearanceObjectCount 返回。 |
| int foxit::ofd::Annot::GetAppearanceObjectCount | ( | ) |
获取标注外观中的图元对象数量。
| foxit::RectF foxit::ofd::Annot::GetBoundary | ( | ) |
获取标注外接矩形框。
| String foxit::ofd::Annot::GetCreator | ( | ) |
获取标注创建者。
| foxit::uint32 foxit::ofd::Annot::GetID | ( | ) |
获取标注的ID。
| String foxit::ofd::Annot::GetSubtype | ( | ) |
获取标注子类型。
| AnnotType foxit::ofd::Annot::GetType | ( | ) |
获取标注类型。
| bool foxit::ofd::Annot::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| bool foxit::ofd::Annot::IsPrintable | ( | ) |
判断标注是否可打印。
| bool foxit::ofd::Annot::IsReadOnly | ( | ) |
判断标注是否只读。
| bool foxit::ofd::Annot::IsVisible | ( | ) |
判断标注是否可见。
| bool foxit::ofd::Annot::operator != | ( | const Annot & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD标注对象。此函数将检查当前对象是否不等于这个对象。 |
赋值操作符。
| [in] | other | 另一个OFD标注对象,其值将被赋给当前对象。 |
| bool foxit::ofd::Annot::operator== | ( | const Annot & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD标注对象。此函数将检查当前对象是否等于这个对象。 |
| void foxit::ofd::Annot::SetBoundary | ( | const foxit::RectF & | rect | ) |
设置标注外接矩形框。
| [in] | rect | 外接矩形框。坐标系为OFD坐标系。 |
| void foxit::ofd::Annot::SetCreator | ( | const String & | creator | ) |
设置标注创建者。
| [in] | creator | 创建者。 |
| void foxit::ofd::Annot::SetLastModDate | ( | const foxit::DateTime & | date_time | ) |
设置标注最后修改日期时间。
| [in] | date_time | 最后修改日期时间。 |
| void foxit::ofd::Annot::SetLinkUri | ( | const String & | uri | ) |
设置链接URI。
| [in] | uri | 链接URI。 |
| void foxit::ofd::Annot::SetSubtype | ( | const String & | subtype | ) |
设置标注子类型。
| [in] | subtype | 子类型。 |