21 class OFDTemplatePage;
46 typedef enum _PageNumberLocationType {
66 typedef enum _PageNumberMarginType {
278 typedef enum _EncryptMethod {
292 typedef enum _EncryptType {
310 typedef enum _ResourceType {
452 bool MovePage(
int index,
int dest_index);
1239 #endif // FS_OFD_DOC_H_ void CreateVersion()
创建版本,并切换到该版本。只能创建一个版本。
CustomTags GetCustomTags()
获取自定义标签。
void ImportAnnots(const String &file_path)
导入注释。
OFDPage GetPage(int index)
获取OFD页面。
void SetCurrentVersion(int index)
设置当前版本。
void AddCustomData(const String &key, const String &value)
添加OFD自定义数据。
void InsertCustomData(const String &key, const String &value, int index)
插入OFD自定义数据。
文件写入接口。
Definition: fx_stream.h:470
OFDDoc & operator=(const OFDDoc &other)
赋值操作符。
Definition: fs_ofdbookmark.h:176
bool CustomEncrypt(const String &security_type, const String &crypto_type, int key_length, const String &user_password, const String &owner_password)
对文档进行自定义加密。必须先调用 OFDSecurity::RegisterHandler 方法注册自定义加密处理器。
CFX_Object Object
对象类型。
Definition: fs_basictypes.h:220
foxit::RGB text_color
页码文本颜色。
Definition: fs_ofddoc.h:229
OFDTemplatePage AddTemplatePage()
添加新的模板页面。
PageNumberParameter & operator=(const PageNumberParameter &other)
赋值操作符。
Definition: fs_ofddoc.h:155
加密类型:RC4。
Definition: fs_ofddoc.h:296
bool operator !=(const OFDDoc &other) const
不相等操作符。
foxit::common::file::ReaderCallback * GetAttachmentFile(int index)
获取OFD附件文件指针。
bool is_folio
是否为对开页面,true代表是对开页面,false代表不是。
Definition: fs_ofddoc.h:254
int GetVersionCount()
获取版本数量。
位置右下。
Definition: fs_ofddoc.h:58
void BeginTagTreeNode(const String &key_path)
开始添加票据标引节点。
OFDPermission GetPermissions()
获取权限对象。
bool RemoveOutline()
删除所有大纲节点。
Definition: fs_ofdtagtreenode.h:21
bool is_first_page_cover
首页是否为封面,true代表首页,false代表非首页。
Definition: fs_ofddoc.h:244
int GetKeywordCount()
获取OFD Metadata项数量。
Definition: fs_ofdattachment.h:122
int GetCustomDataCount()
获取OFD自定义数据数量。
PageNumberParameter(const PageNumberParameter &other)
用另一个页码参数对象的构造函数。
Definition: fs_ofddoc.h:134
uint32 RGB
RGB 颜色类型,24 位,((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:211
bool ExportOfficeDoc(const String &file_path)
导出公文语义xml文件。
Attachments CreateAttachments()
创建OFD附件集合。
bool IsEmpty() const
检查当前对象是否为空。
Outline CreateOutline()
创建大纲。
边距大。
Definition: fs_ofddoc.h:72
WString GetCustomDataValue(int index)
获取OFD自定义值。
OFDTemplatePage InsertTemplatePage(int index)
插入模板页面。
文件读取接口。
Definition: fx_stream.h:587
foxit::uint32 AddResourceFromFile(const String &file_path, const String &format)
从文件添加资源到OFD文档。
int GetPageCount()
获取OFD文档页面数量。
位置右上。
Definition: fs_ofddoc.h:52
WString GetMultiMediaFormatByID(foxit::uint32 res_id)
获取多媒体格式。
宽字符串类
Definition: fx_string.h:1457
WString GetMetadata(const WString &key)
获取OFD Metadata项。
位置下中。
Definition: fs_ofddoc.h:56
OFDTemplatePage GetTemplatePageByID(int id)
获取OFD模板页面。
Attachments GetAttachments()
获取OFD附件集合。
Attachment GetAttachment(int index)
获取OFD附件对象。
ResourceType GetResourceTypeByID(foxit::uint32 res_id)
获取资源类型通过资源ID。
PageNumberMarginType
OFD添加页码边距枚举类型。
Definition: fs_ofddoc.h:66
void ReservedPage(int index)
指定保存需要保留的OFD页面。保存后,未保留的页面将被删除。
Attachment GetAttachmentByName(const String &name)
获取OFD附件对象。
void Set(PageNumberLocationType location, const WString &font_name, float font_size, foxit::RGB text_color, int start_page, int end_page, bool is_first_page_cover, int first_page_number, bool is_folio, PageNumberMarginType margin, bool skip_blank_page)
设置值。
Definition: fs_ofddoc.h:193
void ExportAttachment(int index, const String &file_path)
保存附件到文件中。
加密类型:无。
Definition: fs_ofddoc.h:294
ResourceType
OFD资源类型枚举类型。
Definition: fs_ofddoc.h:310
加密方法:证书加密
Definition: fs_ofddoc.h:284
Definition: fs_ofdoutline.h:20
Definition: fs_ofdattachment.h:395
void RemoveCustomData(int index)
删除OFD自定义数据。
bool MovePage(int index, int dest_index)
移动页面到指定索引。
void AddTagTreeNodeMetaData(const String &key, const String &value)
添加自定义票据标引树节点元数据。
Attachment AddAttachment(const String &file_name, const String &name=0, const String &usage=0)
添加附件。
OFDPage AddPageFromTemplatePage(int index, int dest_index=-1)
添加新的页面。
String GetAttachmentBuffer(int index)
获取OFD附件内存缓冲区。
int GetTemplatePageCount()
获取OFD文档模板页面数量。
void RemoveAllTemplatePages()
删除所有模板页面。
位置左上。
Definition: fs_ofddoc.h:48
字体资源类型。
Definition: fs_ofddoc.h:318
Definition: fs_ofdpermission.h:17
ofdseal::Signature GetSignature(int index)
获取签名或签章对象。
WString GetMultiMediaFileNameByID(foxit::uint32 res_id)
获取多媒体文件名。
Definition: fs_ofdsignature.h:209
void EndTagTreeNode(const String &key_path)
结束添加票据标引节点。
CustomTags CreateCustomTags()
创建自定义标签。
绘制参数资源类型。
Definition: fs_ofddoc.h:316
EncryptMethod
OFD文档加密方法枚举类型。
Definition: fs_ofddoc.h:278
OFDPage GetPageByID(foxit::uint32 id)
获取OFD页面。
void RemoveKeyword(int index)
删除指定关键字。
OFDPermission CreatePermissions()
创建权限对象。
foxit::common::file::ReaderCallback * GetMultiMediaFileByID(int res_id)
通过资源ID获取多媒体文件指针。
OFDTemplatePage AddTemplatePageFromPage(OFDPage page)
添加新的模板页面。
WString GetMultiMediaTypeByID(foxit::uint32 res_id)
获取多媒体类型。
边距小。
Definition: fs_ofddoc.h:68
Definition: fs_ofdcatalog.h:19
Bookmarks GetBookmarks()
获取书签。
void SetMetadata(const WString &key, const WString &value)
设置OFD Metadata项。
多媒体资源类型。
Definition: fs_ofddoc.h:320
bool AddCatalog(const Catalog &catalog)
添加目录。
bool SaveXmlFileAttachment(int index, const String &file_path)
保存XML附件到文件中。
void RemovePage(int index)
删除指定的OFD页面。
float font_size
页码文本字体大小。这应该是一个正值,默认为12。
Definition: fs_ofddoc.h:224
WString font_name
页码文本字体名字。
Definition: fs_ofddoc.h:219
void InitializeTagTreeNode(const String &type, const String &name_space, const String &name, const String &file_extension, bool key_unique)
在文档中初始化指定类型的票据标引树根节点。
加密类型:AES128。
Definition: fs_ofddoc.h:298
bool RemoveEncryption(const String &owner_password)
移除文档加密。
PageNumberParameter()
构造函数。
Definition: fs_ofddoc.h:79
EncryptType
OFD文档加密类型枚举类型。
Definition: fs_ofddoc.h:292
bool RestoreOriginalDocument()
恢复到原始文档。
int first_page_number
起始页码的数值,默认为1。
Definition: fs_ofddoc.h:249
颜色空间资源类型。
Definition: fs_ofddoc.h:314
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:195
边距正常。
Definition: fs_ofddoc.h:70
TagTreeNode GetTagTreeRoot(const String &type)
获取指定类型的票据标引树根节点。
int end_page
终止页面,有效范围:从1到(count)。count 由函数 OFDPagckage::GetDocumentCount 返回。
Definition: fs_ofddoc.h:239
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
void ClearTagTreeNode()
清除票据标引所有节点。
bool InsertDocument(const OFDDoc &other, int dest_index=-1)
插入新的文档。
Definition: fs_ofdpage.h:415
void InitializeCertTagTreeNode(bool key_unique)
在文档中初始化电子证照标引树根节点。
Definition: fs_ofddoc.h:271
void ExportAnnots(const String &file_path)
导出注释。
OFDPage InsertPage(int index)
插入新的OFD页面。
String GetMultiMediaBufferByID(foxit::uint32 res_id)
获取多媒体内存缓冲区。
Definition: fs_basictypes.h:465
复合图形单元资源类型。
Definition: fs_ofddoc.h:322
int GetAttachmentCount()
获取OFD附件数量
void EmbedFont(const String &font_name)
内嵌字体。
foxit::uint32 AddFontResourceFromName(const String &font_family, const String &font_name)
添加字体资源到OFD文档。
Type
图像类型的枚举。
Definition: fs_image.h:457
PageNumberMarginType margin
页码位置类型。
Definition: fs_ofddoc.h:262
OFDTemplatePage GetTemplatePage(int index)
获取OFD模板页面。
void AddPageNumber(const PageNumberParameter ¶m)
根据页码参数添加页码。
加密类型:AES256。
Definition: fs_ofddoc.h:300
加密方法:密码加密
Definition: fs_ofddoc.h:282
Foxit命名空间。
Definition: fs_pdf3d.h:26
Definition: fs_ofddoc.h:39
bool skip_blank_page
是否跳过空白页。true代表跳过空白页,false代表不跳过空白页。
Definition: fs_ofddoc.h:267
字节字符串类
Definition: fx_string.h:317
bool RefreshObjectsPermission(bool authenticated)
刷新文档所有对象权限。
int GetXmlFileAttachmentCount()
获取OFD XML附件数量
Definition: fs_ofdpage.h:27
int start_page
起始页面,有效范围:从1到(count)。count 由函数 OFDPagckage::GetDocumentCount 返回。
Definition: fs_ofddoc.h:234
int GetSignatureCount()
获取签名和签章数量。
Outline GetOutline()
获取大纲。
位置上中。
Definition: fs_ofddoc.h:50
#define NULL
空指针值。
Definition: fx_system.h:792
WString GetCustomDataName(int index)
获取OFD自定义数据。
foxit::uint32 AddImageResourceFromFile(const String &file_path)
从图片文件添加资源到OFD文档。
void RemoveTemplatePage(int index)
删除模板页面。
void InsertKeyword(const WString &keyword, int index=-1)
插入关键字到OFD Metadata项。
加密方法:无。
Definition: fs_ofddoc.h:280
PageNumberParameter(PageNumberLocationType location, const WString &font_name, float font_size, foxit::RGB text_color, int start_page, int end_page, bool is_first_page_cover, int first_page_number, bool is_folio, PageNumberMarginType margin, bool skip_blank_page)
带参数的构造函数。
Definition: fs_ofddoc.h:115
foxit::uint32 AddImageResourceFromBuffer(const String &buffer, foxit::common::Image::Type format)
从图片文件添加资源到OFD文档。
加密类型:SM4。
Definition: fs_ofddoc.h:302
未知类型。
Definition: fs_ofddoc.h:312
Definition: fs_flddoc.h:25
PageNumberLocationType location
页码位置类型。
Definition: fs_ofddoc.h:214
void ExportMultiMediaByID(foxit::uint32 res_id, const String &file_path)
保存多媒体文件。
Bookmarks CreateBookmarks()
创建书签。
bool operator==(const OFDDoc &other) const
相等操作符。
PageNumberLocationType
OFD添加页码位置枚举类型。
Definition: fs_ofddoc.h:46
OFDDoc(const foxit::fld::FLDDoc &doc)
构造函数,从现有foxit::fld::FLDDoc对象。
位置左下。
Definition: fs_ofddoc.h:54
OFDTemplatePage GetTemplatePageByName(const String &name)
获取OFD模板页面。