|
Foxit PDF SDK
|
Public 类型 | |
| enum | EncryptMethod { e_OFDEncryptMethodNone = 0, e_OFDEncryptMethodPwd = 1, e_OFDEncryptMethodCert = 2 } |
| OFD文档加密方法枚举类型。 更多... | |
| enum | EncryptType { e_OFDEncryptTypeNone = 0, e_OFDEncryptTypeRC4 = 1, e_OFDEncryptTypeAES128 = 2, e_OFDEncryptTypeAES256 = 3, e_OFDEncryptTypeSM4 = 4 } |
| OFD文档加密类型枚举类型。 更多... | |
| enum | ResourceType { e_OFDResourceTypeUnknown = 0, e_OFDResourceTypeColorSpace = 1, e_OFDResourceTypeDrawParam = 2, e_OFDResourceTypeFont = 3, e_OFDResourceTypeMultimedia = 4, e_OFDResourceTypeCompositeGraphicUnit = 5 } |
| OFD资源类型枚举类型。 更多... | |
Public 成员函数 | |
| OFDDoc (const foxit::fld::FLDDoc &doc) | |
| 构造函数,从现有foxit::fld::FLDDoc对象。 更多... | |
| OFDDoc (const OFDDoc &other) | |
| 构造函数,通过另一个OFD文档对象。 更多... | |
| ~OFDDoc () | |
| 析构函数。 | |
| Attachment | AddAttachment (const String &file_name, const String &name=0, const String &usage=0) |
| 添加附件。 更多... | |
| Attachment | AddAttachment (const WString &file_name, const String &name=0, const String &usage=0) |
| 添加附件。 更多... | |
| bool | AddCatalog (const Catalog &catalog) |
| 添加目录。 更多... | |
| void | AddCustomData (const String &key, const String &value) |
| 添加OFD自定义数据。 更多... | |
| foxit::uint32 | AddFontResourceFromName (const String &font_family, const String &font_name) |
| 添加字体资源到OFD文档。 更多... | |
| foxit::uint32 | AddImageResourceFromBuffer (const String &buffer, foxit::common::Image::Type format) |
| 从图片文件添加资源到OFD文档。 更多... | |
| foxit::uint32 | AddImageResourceFromFile (const String &file_path) |
| 从图片文件添加资源到OFD文档。 更多... | |
| foxit::uint32 | AddImageResourceFromFile (const WString &file_path) |
| 从图片文件添加资源到OFD文档。 更多... | |
| OFDPage | AddPage () |
| 添加新的页面。 更多... | |
| OFDPage | AddPageFromTemplatePage (int index, int dest_index=-1) |
| 添加新的页面。 更多... | |
| void | AddPageNumber (const PageNumberParameter ¶m) |
| 根据页码参数添加页码。 更多... | |
| foxit::uint32 | AddResourceFromFile (const String &file_path, const String &format) |
| 从文件添加资源到OFD文档。 更多... | |
| foxit::uint32 | AddResourceFromFile (const WString &file_path, const String &format) |
| 从文件添加资源到OFD文档。 更多... | |
| void | AddTagTreeNodeMetaData (const String &key, const String &value) |
| 添加自定义票据标引树节点元数据。 更多... | |
| OFDTemplatePage | AddTemplatePage () |
| 添加新的模板页面。 更多... | |
| OFDTemplatePage | AddTemplatePageFromPage (OFDPage page) |
| 添加新的模板页面。 更多... | |
| void | BeginTagTreeNode (const String &key_path) |
| 开始添加票据标引节点。 更多... | |
| void | ClearTagTreeNode () |
| 清除票据标引所有节点。 更多... | |
| Attachments | CreateAttachments () |
| 创建OFD附件集合。 更多... | |
| Bookmarks | CreateBookmarks () |
| 创建书签。 更多... | |
| CustomTags | CreateCustomTags () |
| 创建自定义标签。 更多... | |
| Outline | CreateOutline () |
| 创建大纲。 更多... | |
| OFDPermission | CreatePermissions () |
| 创建权限对象。 更多... | |
| void | CreateVersion () |
| 创建版本,并切换到该版本。只能创建一个版本。 更多... | |
| bool | CustomEncrypt (const String &security_type, const String &crypto_type, int key_length, const String &user_password, const String &owner_password) |
| 对文档进行自定义加密。必须先调用 OFDSecurity::RegisterHandler 方法注册自定义加密处理器。 更多... | |
| void | EmbedFont (const String &font_name) |
| 内嵌字体。 更多... | |
| void | EndTagTreeNode (const String &key_path) |
| 结束添加票据标引节点。 更多... | |
| void | ExportAnnots (const String &file_path) |
| 导出注释。 更多... | |
| void | ExportAnnots (int start_index, int end_index, const String &file_path) |
| 导出注释。 更多... | |
| void | ExportAttachment (int index, const String &file_path) |
| 保存附件到文件中。 更多... | |
| void | ExportAttachment (int index, const WString &file_path) |
| 保存附件到文件中。 更多... | |
| void | ExportAttachment (int index, foxit::common::file::WriterCallback *file_writer) |
| 保存附件到文件中。 更多... | |
| void | ExportMultiMediaByID (foxit::uint32 res_id, const String &file_path) |
| 保存多媒体文件。 更多... | |
| void | ExportMultiMediaByID (foxit::uint32 res_id, const WString &file_path) |
| 保存多媒体文件。 更多... | |
| void | ExportMultiMediaByID (foxit::uint32 res_id, foxit::common::file::WriterCallback *file_writer) |
| 保存多媒体文件。 更多... | |
| bool | ExportOfficeDoc (const String &file_path) |
| 导出公文语义xml文件。 更多... | |
| bool | ExportOfficeDoc (const WString &file_path) |
| 导出公文语义xml文件。 更多... | |
| Attachment | GetAttachment (int index) |
| 获取OFD附件对象。 更多... | |
| String | GetAttachmentBuffer (int index) |
| 获取OFD附件内存缓冲区。 更多... | |
| Attachment | GetAttachmentByName (const String &name) |
| 获取OFD附件对象。 更多... | |
| int | GetAttachmentCount () |
| 获取OFD附件数量 更多... | |
| foxit::common::file::ReaderCallback * | GetAttachmentFile (int index) |
| 获取OFD附件文件指针。 更多... | |
| Attachments | GetAttachments () |
| 获取OFD附件集合。 更多... | |
| Bookmarks | GetBookmarks () |
| 获取书签。 更多... | |
| int | GetCustomDataCount () |
| 获取OFD自定义数据数量。 更多... | |
| WString | GetCustomDataName (int index) |
| 获取OFD自定义数据。 更多... | |
| WString | GetCustomDataValue (int index) |
| 获取OFD自定义值。 更多... | |
| CustomTags | GetCustomTags () |
| 获取自定义标签。 更多... | |
| int | GetKeywordCount () |
| 获取OFD Metadata项数量。 更多... | |
| WString | GetMetadata (const WString &key) |
| 获取OFD Metadata项。 更多... | |
| String | GetMultiMediaBufferByID (foxit::uint32 res_id) |
| 获取多媒体内存缓冲区。 更多... | |
| foxit::common::file::ReaderCallback * | GetMultiMediaFileByID (int res_id) |
| 通过资源ID获取多媒体文件指针。 更多... | |
| WString | GetMultiMediaFileNameByID (foxit::uint32 res_id) |
| 获取多媒体文件名。 更多... | |
| WString | GetMultiMediaFormatByID (foxit::uint32 res_id) |
| 获取多媒体格式。 更多... | |
| WString | GetMultiMediaTypeByID (foxit::uint32 res_id) |
| 获取多媒体类型。 更多... | |
| Outline | GetOutline () |
| 获取大纲。 更多... | |
| OFDPage | GetPage (int index) |
| 获取OFD页面。 更多... | |
| OFDPage | GetPageByID (foxit::uint32 id) |
| 获取OFD页面。 更多... | |
| int | GetPageCount () |
| 获取OFD文档页面数量。 更多... | |
| OFDPermission | GetPermissions () |
| 获取权限对象。 更多... | |
| ResourceType | GetResourceTypeByID (foxit::uint32 res_id) |
| 获取资源类型通过资源ID。 更多... | |
| ofdseal::Signature | GetSignature (int index) |
| 获取签名或签章对象。 更多... | |
| int | GetSignatureCount () |
| 获取签名和签章数量。 更多... | |
| TagTreeNode | GetTagTreeRoot (const String &type) |
| 获取指定类型的票据标引树根节点。 更多... | |
| OFDTemplatePage | GetTemplatePage (int index) |
| 获取OFD模板页面。 更多... | |
| OFDTemplatePage | GetTemplatePageByID (int id) |
| 获取OFD模板页面。 更多... | |
| OFDTemplatePage | GetTemplatePageByName (const String &name) |
| 获取OFD模板页面。 更多... | |
| int | GetTemplatePageCount () |
| 获取OFD文档模板页面数量。 更多... | |
| int | GetVersionCount () |
| 获取版本数量。 更多... | |
| int | GetXmlFileAttachmentCount () |
| 获取OFD XML附件数量 更多... | |
| void | ImportAnnots (const String &file_path) |
| 导入注释。 更多... | |
| void | InitializeCertTagTreeNode (bool key_unique) |
| 在文档中初始化电子证照标引树根节点。 更多... | |
| void | InitializeTagTreeNode (const String &type, const String &name_space, const String &name, const String &file_extension, bool key_unique) |
| 在文档中初始化指定类型的票据标引树根节点。 更多... | |
| void | InsertCustomData (const String &key, const String &value, int index) |
| 插入OFD自定义数据。 更多... | |
| bool | InsertDocument (const OFDDoc &other, int dest_index=-1) |
| 插入新的文档。 更多... | |
| void | InsertKeyword (const WString &keyword, int index=-1) |
| 插入关键字到OFD Metadata项。 更多... | |
| OFDPage | InsertPage (int index) |
| 插入新的OFD页面。 更多... | |
| OFDTemplatePage | InsertTemplatePage (int index) |
| 插入模板页面。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | MovePage (int index, int dest_index) |
| 移动页面到指定索引。 更多... | |
| bool | operator != (const OFDDoc &other) const |
| 不相等操作符。 更多... | |
| OFDDoc & | operator= (const OFDDoc &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const OFDDoc &other) const |
| 相等操作符。 更多... | |
| bool | RefreshObjectsPermission (bool authenticated) |
| 刷新文档所有对象权限。 更多... | |
| void | RemoveAllTemplatePages () |
| 删除所有模板页面。 更多... | |
| void | RemoveCustomData (int index) |
| 删除OFD自定义数据。 更多... | |
| bool | RemoveEncryption (const String &owner_password) |
| 移除文档加密。 更多... | |
| void | RemoveKeyword (int index) |
| 删除指定关键字。 更多... | |
| bool | RemoveOutline () |
| 删除所有大纲节点。 更多... | |
| void | RemovePage (int index) |
| 删除指定的OFD页面。 更多... | |
| void | RemoveTemplatePage (int index) |
| 删除模板页面。 更多... | |
| void | ReservedPage (int index) |
| 指定保存需要保留的OFD页面。保存后,未保留的页面将被删除。 更多... | |
| bool | RestoreOriginalDocument () |
| 恢复到原始文档。 更多... | |
| bool | SaveXmlFileAttachment (int index, const String &file_path) |
| 保存XML附件到文件中。 更多... | |
| bool | SaveXmlFileAttachment (int index, const WString &file_path) |
| 保存XML附件到文件中。 更多... | |
| void | SetCurrentVersion (int index) |
| 设置当前版本。 更多... | |
| void | SetMetadata (const WString &key, const WString &value) |
| 设置OFD Metadata项。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
此类表示和OFD文档相关的方法。
|
explicit |
构造函数,从现有foxit::fld::FLDDoc对象。
| [in] | doc | FLD文档对象。 |
| foxit::ofd::OFDDoc::OFDDoc | ( | const OFDDoc & | other | ) |
构造函数,通过另一个OFD文档对象。
| [in] | other | 另一个OFD文档对象。 |
| Attachment foxit::ofd::OFDDoc::AddAttachment | ( | const String & | file_name, |
| const String & | name = 0, |
||
| const String & | usage = 0 |
||
| ) |
添加附件。
| [in] | file_name | 附件路径。 |
| [in] | name | 附件名称。 |
| [in] | usage | 附件用途。 |
| Attachment foxit::ofd::OFDDoc::AddAttachment | ( | const WString & | file_name, |
| const String & | name = 0, |
||
| const String & | usage = 0 |
||
| ) |
添加附件。
| [in] | file_name | 附件路径。 |
| [in] | name | 附件名称。 |
| [in] | usage | 附件用途。 |
| bool foxit::ofd::OFDDoc::AddCatalog | ( | const Catalog & | catalog | ) |
添加目录。
| [in] | catalog | 目录对象。 |
添加OFD自定义数据。
| [in] | key | 自定义数据关键字。 |
| [in] | value | 自定义数据值。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddFontResourceFromName | ( | const String & | font_family, |
| const String & | font_name | ||
| ) |
添加字体资源到OFD文档。
| [in] | font_family | 字体家族名称。 |
| [in] | font_name | 字体名称。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddImageResourceFromBuffer | ( | const String & | buffer, |
| foxit::common::Image::Type | format | ||
| ) |
从图片文件添加资源到OFD文档。
| [in] | buffer | 图片内存缓冲区。 |
| [in] | format | 图片格式。 请参考从 foxit::common::Image::Type::e_None 开始的值。 不支持 foxit::common::Image::Type::e_WEBP 格式。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddImageResourceFromFile | ( | const String & | file_path | ) |
从图片文件添加资源到OFD文档。
| [in] | file_path | 资源文件路径。它不应该是空字符串。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddImageResourceFromFile | ( | const WString & | file_path | ) |
从图片文件添加资源到OFD文档。
| [in] | file_path | 资源文件路径。它不应该是空字符串。图片格式不支持webp。 |
| OFDPage foxit::ofd::OFDDoc::AddPage | ( | ) |
添加新的页面。
| OFDPage foxit::ofd::OFDDoc::AddPageFromTemplatePage | ( | int | index, |
| int | dest_index = -1 |
||
| ) |
添加新的页面。
| [in] | index | 用于创建页面的模板页面索引。 有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetTemplatePageCount 返回。 |
| [in] | dest_index | 插入的页面索引。有效范围:从0到(count)。 count 由函数 OFDDoc::GetPageCount 返回。 默认值-1表示在最后一页后添加。 |
| void foxit::ofd::OFDDoc::AddPageNumber | ( | const PageNumberParameter & | param | ) |
根据页码参数添加页码。
| [in] | param | 页面页码参数结构体对象。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddResourceFromFile | ( | const String & | file_path, |
| const String & | format | ||
| ) |
从文件添加资源到OFD文档。
| [in] | file_path | 资源文件路径。只能是mp4文件或者图片文件。它不应该是空字符串。 |
| [in] | format | 资源格式。只能是mp4或者图片格式,图片格式不支持webp、jpx。 |
| foxit::uint32 foxit::ofd::OFDDoc::AddResourceFromFile | ( | const WString & | file_path, |
| const String & | format | ||
| ) |
从文件添加资源到OFD文档。
| [in] | file_path | 资源文件路径。只能是mp4文件或者图片文件。它不应该是空字符串。 |
| [in] | format | 资源格式。只能是mp4或者图片格式,图片格式不支持webp、jpx。 |
添加自定义票据标引树节点元数据。
| [in] | key | 元数据关键字。 |
| [in] | value | 元数据值。 |
| OFDTemplatePage foxit::ofd::OFDDoc::AddTemplatePage | ( | ) |
添加新的模板页面。
| OFDTemplatePage foxit::ofd::OFDDoc::AddTemplatePageFromPage | ( | OFDPage | page | ) |
添加新的模板页面。
| [in] | page | 用于创建模板页面的OFD页面对象。 |
| void foxit::ofd::OFDDoc::BeginTagTreeNode | ( | const String & | key_path | ) |
开始添加票据标引节点。
| [in] | key_path | 票据标引节点路径。 |
| void foxit::ofd::OFDDoc::ClearTagTreeNode | ( | ) |
清除票据标引所有节点。
| Attachments foxit::ofd::OFDDoc::CreateAttachments | ( | ) |
创建OFD附件集合。
| Bookmarks foxit::ofd::OFDDoc::CreateBookmarks | ( | ) |
创建书签。
| CustomTags foxit::ofd::OFDDoc::CreateCustomTags | ( | ) |
创建自定义标签。
| Outline foxit::ofd::OFDDoc::CreateOutline | ( | ) |
创建大纲。
| OFDPermission foxit::ofd::OFDDoc::CreatePermissions | ( | ) |
创建权限对象。
| void foxit::ofd::OFDDoc::CreateVersion | ( | ) |
创建版本,并切换到该版本。只能创建一个版本。
| bool foxit::ofd::OFDDoc::CustomEncrypt | ( | const String & | security_type, |
| const String & | crypto_type, | ||
| int | key_length, | ||
| const String & | user_password, | ||
| const String & | owner_password | ||
| ) |
对文档进行自定义加密。必须先调用 OFDSecurity::RegisterHandler 方法注册自定义加密处理器。
| [in] | security_type | 安全类型。 |
| [in] | crypto_type | 加密算法类型。 |
| [in] | key_length | 密钥长度。 |
| [in] | user_password | 用户密码,用户密码和所有者密码不能全部为空。 |
| [in] | owner_password | 所有者密码,用户密码和所有者密码不能全部为空。 |
| void foxit::ofd::OFDDoc::EmbedFont | ( | const String & | font_name | ) |
内嵌字体。
| [in] | font_name | 字体名称,必须是OFD中使用的字体。 否则什么都不会发生。 |
| void foxit::ofd::OFDDoc::EndTagTreeNode | ( | const String & | key_path | ) |
结束添加票据标引节点。
| [in] | key_path | 票据标引节点路径。 |
| void foxit::ofd::OFDDoc::ExportAnnots | ( | const String & | file_path | ) |
导出注释。
| [in] | file_path | 导出注释文件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportAnnots | ( | int | start_index, |
| int | end_index, | ||
| const String & | file_path | ||
| ) |
导出注释。
| [in] | start_index | 起始页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetPageCount 返回。 |
| [in] | end_index | 终止页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetPageCount 返回。 |
| [in] | file_path | 导出注释文件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportAttachment | ( | int | index, |
| const String & | file_path | ||
| ) |
保存附件到文件中。
| [in] | index | 附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetAttachmentCount 返回。 |
| [in] | file_path | 保存附件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportAttachment | ( | int | index, |
| const WString & | file_path | ||
| ) |
保存附件到文件中。
| [in] | index | 附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetAttachmentCount 返回。 |
| [in] | file_path | 保存附件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportAttachment | ( | int | index, |
| foxit::common::file::WriterCallback * | file_writer | ||
| ) |
保存附件到文件中。
| [in] | index | 附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetAttachmentCount 返回。 |
| [in] | file_writer | 用户实现的 common::file::WriterCallback 对象,用于保存附件文档。 |
| void foxit::ofd::OFDDoc::ExportMultiMediaByID | ( | foxit::uint32 | res_id, |
| const String & | file_path | ||
| ) |
保存多媒体文件。
| [in] | res_id | 资源ID。 |
| [in] | file_path | 保存多媒体文件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportMultiMediaByID | ( | foxit::uint32 | res_id, |
| const WString & | file_path | ||
| ) |
保存多媒体文件。
| [in] | res_id | 资源ID。 |
| [in] | file_path | 保存多媒体文件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::ExportMultiMediaByID | ( | foxit::uint32 | res_id, |
| foxit::common::file::WriterCallback * | file_writer | ||
| ) |
| bool foxit::ofd::OFDDoc::ExportOfficeDoc | ( | const String & | file_path | ) |
导出公文语义xml文件。
| [in] | file_path | 导出公文语义xml文件的文件路径。它不应该是空字符串。 |
| bool foxit::ofd::OFDDoc::ExportOfficeDoc | ( | const WString & | file_path | ) |
导出公文语义xml文件。
| [in] | file_path | 导出公文语义xml文件的文件路径。它不应该是空字符串。 |
| Attachment foxit::ofd::OFDDoc::GetAttachment | ( | int | index | ) |
| String foxit::ofd::OFDDoc::GetAttachmentBuffer | ( | int | index | ) |
获取OFD附件内存缓冲区。
| [in] | index | 附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetAttachmentCount 返回。 |
| Attachment foxit::ofd::OFDDoc::GetAttachmentByName | ( | const String & | name | ) |
获取OFD附件对象。
| [in] | name | 附件名。 |
| int foxit::ofd::OFDDoc::GetAttachmentCount | ( | ) |
获取OFD附件数量
| foxit::common::file::ReaderCallback* foxit::ofd::OFDDoc::GetAttachmentFile | ( | int | index | ) |
获取OFD附件文件指针。
| [in] | index | 附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetAttachmentCount 返回。 |
| Attachments foxit::ofd::OFDDoc::GetAttachments | ( | ) |
获取OFD附件集合。
| Bookmarks foxit::ofd::OFDDoc::GetBookmarks | ( | ) |
获取书签。
| int foxit::ofd::OFDDoc::GetCustomDataCount | ( | ) |
获取OFD自定义数据数量。
| WString foxit::ofd::OFDDoc::GetCustomDataName | ( | int | index | ) |
获取OFD自定义数据。
| [in] | index | 自定义数据索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetCustomDataCount 返回。 |
| WString foxit::ofd::OFDDoc::GetCustomDataValue | ( | int | index | ) |
获取OFD自定义值。
| [in] | index | 自定义数据索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetCustomDataCount 返回。 |
| CustomTags foxit::ofd::OFDDoc::GetCustomTags | ( | ) |
获取自定义标签。
| int foxit::ofd::OFDDoc::GetKeywordCount | ( | ) |
获取OFD Metadata项数量。
获取OFD Metadata项。
| [in] | key | 关键字。 |
| String foxit::ofd::OFDDoc::GetMultiMediaBufferByID | ( | foxit::uint32 | res_id | ) |
获取多媒体内存缓冲区。
| [in] | res_id | 资源ID。 |
| foxit::common::file::ReaderCallback* foxit::ofd::OFDDoc::GetMultiMediaFileByID | ( | int | res_id | ) |
通过资源ID获取多媒体文件指针。
| [in] | res_id | 资源ID。 |
| WString foxit::ofd::OFDDoc::GetMultiMediaFileNameByID | ( | foxit::uint32 | res_id | ) |
获取多媒体文件名。
| [in] | res_id | 资源ID。 |
| WString foxit::ofd::OFDDoc::GetMultiMediaFormatByID | ( | foxit::uint32 | res_id | ) |
获取多媒体格式。
| [in] | res_id | 资源ID。 |
| WString foxit::ofd::OFDDoc::GetMultiMediaTypeByID | ( | foxit::uint32 | res_id | ) |
获取多媒体类型。
| [in] | res_id | 资源ID。 |
| Outline foxit::ofd::OFDDoc::GetOutline | ( | ) |
获取大纲。
| OFDPage foxit::ofd::OFDDoc::GetPage | ( | int | index | ) |
| OFDPage foxit::ofd::OFDDoc::GetPageByID | ( | foxit::uint32 | id | ) |
获取OFD页面。
| [in] | id | 页面ID。 |
| int foxit::ofd::OFDDoc::GetPageCount | ( | ) |
获取OFD文档页面数量。
| OFDPermission foxit::ofd::OFDDoc::GetPermissions | ( | ) |
获取权限对象。
| ResourceType foxit::ofd::OFDDoc::GetResourceTypeByID | ( | foxit::uint32 | res_id | ) |
| ofdseal::Signature foxit::ofd::OFDDoc::GetSignature | ( | int | index | ) |
| int foxit::ofd::OFDDoc::GetSignatureCount | ( | ) |
获取签名和签章数量。
| TagTreeNode foxit::ofd::OFDDoc::GetTagTreeRoot | ( | const String & | type | ) |
获取指定类型的票据标引树根节点。
| [in] | type | 票据标引类型,例如电子证照类型"Cert"。 |
| OFDTemplatePage foxit::ofd::OFDDoc::GetTemplatePage | ( | int | index | ) |
获取OFD模板页面。
| [in] | index | 页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetTemplatePageCount 返回。 |
| OFDTemplatePage foxit::ofd::OFDDoc::GetTemplatePageByID | ( | int | id | ) |
获取OFD模板页面。
| [in] | id | 模板页面id。 |
| OFDTemplatePage foxit::ofd::OFDDoc::GetTemplatePageByName | ( | const String & | name | ) |
获取OFD模板页面。
| [in] | name | 模板页面名字。 |
| int foxit::ofd::OFDDoc::GetTemplatePageCount | ( | ) |
获取OFD文档模板页面数量。
| int foxit::ofd::OFDDoc::GetVersionCount | ( | ) |
获取版本数量。
| int foxit::ofd::OFDDoc::GetXmlFileAttachmentCount | ( | ) |
获取OFD XML附件数量
| void foxit::ofd::OFDDoc::ImportAnnots | ( | const String & | file_path | ) |
导入注释。
| [in] | file_path | 导入注释文件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::InitializeCertTagTreeNode | ( | bool | key_unique | ) |
在文档中初始化电子证照标引树根节点。
| [in] | key_unique | 票据标引键是否唯一,true表示唯一,false表示不唯一。 |
| void foxit::ofd::OFDDoc::InitializeTagTreeNode | ( | const String & | type, |
| const String & | name_space, | ||
| const String & | name, | ||
| const String & | file_extension, | ||
| bool | key_unique | ||
| ) |
在文档中初始化指定类型的票据标引树根节点。
| [in] | type | 票据标引类型,例如电子证照类型"Cert"。 |
| [in] | name_space | 票据标引命名空间,例如电子证照命名空间"Cert"。 |
| [in] | name | 票据标引名称,例如电子证照名称"电子证照"。 |
| [in] | file_extension | 票据标引文件扩展名,例如电子证照“Certificate”,生成的标引文件为"Tag_Certificate.xml"。 |
| [in] | key_unique | 票据标引键是否唯一,true表示唯一,false表示不唯一。 |
插入OFD自定义数据。
| [in] | key | 自定义数据关键字。 |
| [in] | value | 自定义数据值。 |
| [in] | index | 插入的自定义数据索引。 |
| bool foxit::ofd::OFDDoc::InsertDocument | ( | const OFDDoc & | other, |
| int | dest_index = -1 |
||
| ) |
插入新的文档。
| [in] | other | 被插入的文档对象。 |
| [in] | dest_index | 插入的页面索引,默认值为-1,表示插入到最后面。 有效范围:从-1到(count - 1)。count 由函数 OFDDoc::GetPageCount 返回。 |
| void foxit::ofd::OFDDoc::InsertKeyword | ( | const WString & | keyword, |
| int | index = -1 |
||
| ) |
插入关键字到OFD Metadata项。
| [in] | keyword | 关键字。 |
| [in] | index | 插入的关键字索引,默认值为-1。 |
| OFDPage foxit::ofd::OFDDoc::InsertPage | ( | int | index | ) |
| OFDTemplatePage foxit::ofd::OFDDoc::InsertTemplatePage | ( | int | index | ) |
插入模板页面。
| [in] | index | 插入的页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetTemplatePageCount 返回。 |
| bool foxit::ofd::OFDDoc::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| bool foxit::ofd::OFDDoc::MovePage | ( | int | index, |
| int | dest_index | ||
| ) |
移动页面到指定索引。
| [in] | index | 要移动页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetPageCount 返回。 |
| [in] | dest_index | 页面目的地索引。有效范围:从0到(count)。 count 由函数 OFDDoc::GetPageCount 返回。 |
| bool foxit::ofd::OFDDoc::operator != | ( | const OFDDoc & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD文档对象。此函数将检查当前对象是否不等于这个对象。 |
赋值操作符。
| [in] | other | 另一个OFD文档对象,其值将被赋给当前对象。 |
| bool foxit::ofd::OFDDoc::operator== | ( | const OFDDoc & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD文档对象。此函数将检查当前对象是否等于这个对象。 |
| bool foxit::ofd::OFDDoc::RefreshObjectsPermission | ( | bool | authenticated | ) |
刷新文档所有对象权限。
| [in] | authenticated | 是否通过认证。 |
| void foxit::ofd::OFDDoc::RemoveAllTemplatePages | ( | ) |
删除所有模板页面。
| void foxit::ofd::OFDDoc::RemoveCustomData | ( | int | index | ) |
删除OFD自定义数据。
| [in] | index | 要删除的自定义数据索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetCustomDataCount 返回。 |
| bool foxit::ofd::OFDDoc::RemoveEncryption | ( | const String & | owner_password | ) |
移除文档加密。
| [in] | owner_password | 所有者密码。 |
| void foxit::ofd::OFDDoc::RemoveKeyword | ( | int | index | ) |
| bool foxit::ofd::OFDDoc::RemoveOutline | ( | ) |
删除所有大纲节点。
| void foxit::ofd::OFDDoc::RemovePage | ( | int | index | ) |
| void foxit::ofd::OFDDoc::RemoveTemplatePage | ( | int | index | ) |
| void foxit::ofd::OFDDoc::ReservedPage | ( | int | index | ) |
指定保存需要保留的OFD页面。保存后,未保留的页面将被删除。
| [in] | index | 保留页面索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetPageCount 返回。 |
| bool foxit::ofd::OFDDoc::RestoreOriginalDocument | ( | ) |
恢复到原始文档。
| bool foxit::ofd::OFDDoc::SaveXmlFileAttachment | ( | int | index, |
| const String & | file_path | ||
| ) |
保存XML附件到文件中。
| [in] | index | XML附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetXmlFileAttachmentCount 返回。 |
| [in] | file_path | 保存附件的文件路径。它不应该是空字符串。 |
| bool foxit::ofd::OFDDoc::SaveXmlFileAttachment | ( | int | index, |
| const WString & | file_path | ||
| ) |
保存XML附件到文件中。
| [in] | index | XML附件索引。有效范围:从0到(count-1)。 count 由函数 OFDDoc::GetXmlFileAttachmentCount 返回。 |
| [in] | file_path | 保存附件的文件路径。它不应该是空字符串。 |
| void foxit::ofd::OFDDoc::SetCurrentVersion | ( | int | index | ) |