Foxit PDF SDK
fs_flddoc.h
1 #ifndef FS_FLD_DOC_H_
2 #define FS_FLD_DOC_H_
3 
4 #include "common/fs_common.h"
5 
11 namespace foxit {
15 namespace fld {
16 class FLDPage;
17 
25 class FLDDoc FS_FINAL : public Base {
26  public:
32  typedef enum _FLDType {
39  } FLDType;
40 
41 
47  explicit FLDDoc(const char* path);
48 
54  explicit FLDDoc(const wchar_t* path);
55 
62  explicit FLDDoc(const void* buffer, size_t size);
63 
65  ~FLDDoc();
66 
72  FLDDoc(const FLDDoc& other);
73 
81  FLDDoc& operator = (const FLDDoc& other);
82 
90  bool operator == (const FLDDoc& other) const;
91 
99  bool operator != (const FLDDoc& other) const;
100 
108  bool IsEmpty() const;
109 
115  ErrorCode Load(const String& password = "") const;
116 
122  FLDType GetFLDType() const;
123 
129  String GetVersion() const;
130 
136  String GetDocType() const;
137 
143  int GetPageCount() const;
144 
153  FLDPage GetPage(int page_index) const;
154 
162  bool SaveAs(const char* path) const;
163 
171  bool SaveAs(const wchar_t* path) const;
172 
173  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
174  explicit FLDDoc(FS_HANDLE handle = NULL);
175 };
176 
177 } // namespace fld
178 } // namespace foxit
179 
180 #endif // FS_FLD_DOC_H_
bool operator !=(const FLDDoc &other) const
不相等操作符。
FLDType GetFLDType() const
获取FLD文档FLD类型。
int GetPageCount() const
获取FLD文档页面数量。
~FLDDoc()
析构函数。
PDF类型的FLD文档。
Definition: fs_flddoc.h:36
FLDPage GetPage(int page_index) const
获取FLD文档页面。
bool operator==(const FLDDoc &other) const
相等操作符。
ErrorCode
错误代码的枚举。
Definition: fs_basictypes.h:236
FLDDoc & operator=(const FLDDoc &other)
赋值操作符。
未知的FLD类型。
Definition: fs_flddoc.h:34
bool SaveAs(const char *path) const
保存FLD文档到指定路径。
FLDDoc(const char *path)
构造函数。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
ErrorCode Load(const String &password="") const
加载FLD文档。
通用定义和类的头文件。
String GetDocType() const
获取FLD文档类型。
bool IsEmpty() const
检查当前对象是否为空。
Definition: fs_basictypes.h:465
String GetVersion() const
获取FLD文档版本。
Definition: fs_fldpage.h:17
Foxit命名空间。
Definition: fs_taggedpdf.h:27
字节字符串类
Definition: fx_string.h:317
FLDType
FLD文档类型枚举类型.
Definition: fs_flddoc.h:32
#define NULL
空指针值。
Definition: fx_system.h:792
OFD类型的FLD文档。
Definition: fs_flddoc.h:38
Definition: fs_flddoc.h:25