15 #ifndef FS_PDFATTACHMENTS_H_ 16 #define FS_PDFATTACHMENTS_H_ 223 #endif // FS_PDFATTACHMENTS_H_ bool IsEmpty() const
Check whether current object is empty or not.
FileSpec GetEmbeddedFile(const WString &key)
Get the attachment (as file specification object) of a specified key.
bool SetEmbeddedFile(const WString &key, const FileSpec &file_spec)
Set an embedded attachment (as file specification object) for a specified key.
Header file for file specification related definitions and classes.
WIDE STRING CLASS.
Definition: fx_string.h:1452
Definition: fs_pdfdoc.h:352
WString GetKey(int index)
Get the key of an attachment defined in the EmbeddedFiles name tree, by index.
~Attachments()
Destructor.
bool operator!=(const Attachments &other) const
Not equal operator.
bool RemoveAllEmbeddedFiles()
Remove all attachments.
Attachments & operator=(const Attachments &other)
Assign operator.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
objects::PDFNameTree GetNameTree() const
Get the EmbeddedFiles name tree.
Header file for common definitions and classes.
bool AddEmbeddedFile(const WString &key, const FileSpec &file_spec)
Add an embedded attachment (as file specification object) with new key name.
Definition: fs_pdfnametree.h:67
Definition: fs_basictypes.h:393
Definition: fs_filespec.h:38
Header file for PDF name tree related definitions and classes.
Foxit namespace.
Definition: fs_compare.h:27
bool ExtractEmbeddedFileTo(const WString &key, const wchar_t *dst_file_path)
Extract an attachment and save it to a specified file path.
int GetCount()
Get the count of attachments.
#define NULL
The null-pointer value.
Definition: fx_system.h:767
bool operator==(const Attachments &other) const
Equal operator.
bool AddFromFilePath(const WString &key, const wchar_t *file_path)
Add a new attachment from specified file path with new key name.
Attachments(const PDFDoc &doc, const objects::PDFNameTree &nametree=foxit::pdf::objects::PDFNameTree())
Constructor, with parameters. from a PDF document object and an EmbeddedFiles name tree (if any).
Definition: fs_pdfattachments.h:40
bool RemoveEmbeddedFile(const WString &key)
Remove an attachment by key.