15 #ifndef FS_PDFATTACHMENTS_H_ 16 #define FS_PDFATTACHMENTS_H_ 215 #endif // FS_PDFATTACHMENTS_H_ bool IsEmpty() const
检查当前对象是否为空。
FileSpec GetEmbeddedFile(const WString &key)
获取指定键的附件(作为文件规范对象)。
bool SetEmbeddedFile(const WString &key, const FileSpec &file_spec)
为指定键设置嵌入附件(作为文件规范对象)。
宽字符串类
Definition: fx_string.h:1457
Definition: fs_pdfdoc.h:771
WString GetKey(int index)
通过索引获取EmbeddedFiles名称树中定义的附件键。
bool RemoveAllEmbeddedFiles()
移除所有附件。
Attachments & operator=(const Attachments &other)
赋值操作符。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
objects::PDFNameTree GetNameTree() const
获取EmbeddedFiles名称树。
bool operator !=(const Attachments &other) const
不等操作符。
bool AddEmbeddedFile(const WString &key, const FileSpec &file_spec)
使用新键名添加嵌入附件(作为文件规范对象)。
Definition: fs_pdfnametree.h:72
Definition: fs_basictypes.h:449
Definition: fs_filespec.h:38
Foxit命名空间。
Definition: fs_taggedpdf.h:27
bool ExtractEmbeddedFileTo(const WString &key, const wchar_t *dst_file_path)
提取附件并将其保存到指定文件路径。
#define NULL
空指针值。
Definition: fx_system.h:792
bool operator==(const Attachments &other) const
相等操作符。
bool AddFromFilePath(const WString &key, const wchar_t *file_path)
使用新键名从指定文件路径添加新附件。
Attachments(const PDFDoc &doc, const objects::PDFNameTree &nametree=foxit::pdf::objects::PDFNameTree())
构造函数,带参数。从PDF文档对象和EmbeddedFiles名称树(如果有的话)构造。
Definition: fs_pdfattachments.h:39
bool RemoveEmbeddedFile(const WString &key)
通过键移除附件。