15 #ifndef FS_FILESPEC_H_ 16 #define FS_FILESPEC_H_ 177 bool Embed(
const wchar_t* file_path);
348 #endif // namespace foxit DateTime GetModifiedDateTime() const
Get modified date and time about when the embedded file was last modified.
common::file::ReaderCallback * GetFileData() const
Get the file data of embedded file.
void SetAssociteFileRelationship(AssociatedFiles::Relationship associfile_relationship)
(Only supported in PDF 2.0) Set the associated file relationship when current file specification is u...
AssociatedFiles::Relationship GetAssociteFileRelationship() const
(Only supported in PDF 2.0) Get the associated file relationship when current file specification is u...
Relationship
Enumeration for the relationship between PDF document and the associated file.
Definition: fs_pdfassociatefiles.h:60
Definition: fs_basictypes.h:408
Header file for file operation related definitions and functions.
file reading interface.
Definition: fx_stream.h:555
FileSpec(const PDFDoc &document)
Constructor.
WIDE STRING CLASS.
Definition: fx_string.h:1459
String GetSubtype() const
(Only support in PDF 2.0) Get the MIME type value for "Subtype" key for embedded file when current fi...
void SetSubtype(const String &subtype="application/octet-stream")
(Only support in PDF 2.0) Set the MIME type value for "Subtype" key for embedded file (Not affect loc...
Definition: fs_pdfdoc.h:347
bool IsEmpty() const
Check whether current object is empty or not.
objects::PDFDictionary * GetDict() const
Get the PDF dictionary of current file specification.
int64 GetFileSize() const
Get the size of embedded file.
String GetChecksum() const
Get the checksum for embedded file.
bool operator!=(const FileSpec &other) const
Not equal operator.
DateTime GetCreationDateTime() const
Get creation date and time about when the embedded file was created.
WString GetFileName() const
Get the file name.
bool IsEmbedded() const
Check whether current file specification object represents an embedded file or not.
File stream interface, reading & writing.
Definition: fx_stream.h:650
bool Embed(const wchar_t *file_path)
Embed the whole content of a file which is specified by file path.
bool operator==(const FileSpec &other) const
Equal operator.
FX_INT64 int64
Signed 64-bit integer.
Definition: fs_basictypes.h:192
bool ExportToFile(const wchar_t *path) const
Export the file data that represented in current file specification directly into a file.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
Header file for common definitions and classes.
void SetModifiedDateTime(const DateTime &date_time)
Set last modified date and time for the embedded file. (Not affect local file)
void SetCreationDateTime(const DateTime &date_time)
Set the creation date and time for the embedded file. (Not affect local file)
void SetDescription(const String &description)
Set the descriptive text associated with current file specification.
Header file for PDF object related definitions and classes.
Definition: fs_basictypes.h:375
Definition: fs_filespec.h:38
String GetDescription() const
Get the descriptive text associated with current file specification.
Definition: fs_pdfobject.h:763
Foxit namespace.
Definition: fs_compare.h:27
Definition: fs_pdfobject.h:55
BYTE STRING CLASS.
Definition: fx_string.h:317
#define NULL
The null-pointer value.
Definition: fx_system.h:771
bool ExportToFileStream(foxit::common::file::StreamCallback *stream) const
Export the file data that represented in current file specification through a stream callback object.
Header file for associated file related definitions and classes.
void SetChecksum(const String &checksum)
Set the checksum for embedded file. (Not affect local file)
void SetFileName(const wchar_t *file_name)
Set the file name.
FileSpec & operator=(const FileSpec &other)
Assign operator.