Foxit PDF SDK
fs_fdfdoc.h
浏览该文件的文档.
1 
15 #ifndef FS_FDFDOC_H_
16 #define FS_FDFDOC_H_
17 
18 #include "common/fs_common.h"
19 #include "common/file/fs_file.h"
20 #include "pdf/annots/fs_annot.h"
22 
28 namespace foxit {
32 namespace fdf {
51 class FDFDoc FS_FINAL : public Base {
52  public:
58  typedef enum _Type {
60  e_FDF = 0,
62  e_XFDF = 1
63  } Type;
64 
65 
72  explicit FDFDoc(common::file::ReaderCallback* file_read);
73 
82  explicit FDFDoc(Type type);
83 
89  explicit FDFDoc(const char* path);
90 
96  explicit FDFDoc(const wchar_t* path);
97 
105  FDFDoc(const void* buffer, size_t length);
106 
112  FDFDoc(const FDFDoc& other);
120  FDFDoc& operator = (const FDFDoc& other);
121 
129  bool operator == (const FDFDoc& other) const;
137  bool operator != (const FDFDoc& other) const;
138 
140  ~FDFDoc();
141 
149  bool IsEmpty() const;
150 
157  Type GetType() const;
158 
167 
176  bool SetPDFPath(const wchar_t* pdf_path);
177 
194  bool SaveAs(const char* file_path);
195 
212  bool SaveAs(const wchar_t* file_path);
213 
231 
239 
247 
248  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
249  explicit FDFDoc(FS_HANDLE handle = NULL);
250 };
251 } // namespace fdf
252 } // namespace foxit
253 #endif // FS_FDFDOC_H_
254 
pdf::objects::PDFDictionary * GetCatalog() const
获取目录字典。
文件写入接口。
Definition: fx_stream.h:470
bool SetPDFPath(const wchar_t *pdf_path)
设置相关PDF文档的路径。
Type GetType() const
获取当前文档对象的类型。
bool operator !=(const FDFDoc &other) const
不等操作符。
文件操作相关定义和函数的头文件。
文件读取接口。
Definition: fx_stream.h:587
宽字符串类
Definition: fx_string.h:1457
FDF文档类型:FDF。
Definition: fs_fdfdoc.h:60
FDF文档类型:XFDF。
Definition: fs_fdfdoc.h:62
~FDFDoc()
析构函数。
bool operator==(const FDFDoc &other) const
相等操作符。
Definition: fs_fdfdoc.h:51
bool SaveAs(const char *file_path)
将当前文档另存为另一个FDF或XFDF文件。
注释相关定义和类的头文件。
Type
FDF文档类型的枚举。
Definition: fs_fdfdoc.h:58
bool IsEmpty() const
检查当前对象是否为空。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
通用定义和类的头文件。
PDF对象相关定义和类的头文件。
pdf::objects::PDFDictionary * GetFDFDict() const
从目录字典获取"FDF"条目的字典。
Definition: fs_basictypes.h:449
WString GetPDFPath()
获取相关PDF文档的路径。
Definition: fs_pdfobject.h:848
FDFDoc & operator=(const FDFDoc &other)
赋值操作符。
Foxit命名空间。
Definition: fs_taggedpdf.h:27
#define NULL
空指针值。
Definition: fx_system.h:792
FDFDoc(common::file::ReaderCallback *file_read)
构造函数,使用文件读取回调对象。