Foxit PDF SDK
fs_fldpage.h
1 #ifndef FS_FLD_PAGE_H_
2 #define FS_FLD_PAGE_H_
3 
4 #include "common/fs_common.h"
5 
11 namespace foxit {
15 namespace fld {
17 class FLDPage FS_FINAL : public Base {
18  public:
20  ~FLDPage();
21 
27  FLDPage(const FLDPage& other);
28 
36  FLDPage& operator = (const FLDPage& other);
37 
45  bool operator == (const FLDPage& other) const;
46 
54  bool operator != (const FLDPage& other) const;
55 
63  bool IsEmpty() const;
64 
70  bool IsParsed() const;
71 
77  ErrorCode Parse() const;
78 
84  float GetWidth() const;
85 
91  float GetHeight() const;
92 
99 
111  foxit::Matrix GetDisplayMatrix(int left, int top, int width, int height, foxit::common::Rotation rotate) const;
112 
118  foxit::RectF GetBox() const;
119 
120  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
121  explicit FLDPage(FS_HANDLE handle = NULL);
122 };
123 
124 } // namespace fld
125 } // namespace foxit
126 
127 #endif // FS_FLD_PAGE_H_
foxit::Matrix GetDisplayMatrix(int left, int top, int width, int height, foxit::common::Rotation rotate) const
计算渲染矩阵。
float GetWidth() const
获取页面宽度。单位为1/72英寸。
foxit::RectF GetBox() const
获取页面区域。
FLDPage & operator=(const FLDPage &other)
赋值操作符。
~FLDPage()
析构函数。
FLDPage(const FLDPage &other)
构造函数,通过另一个FLD页面对象。
bool operator==(const FLDPage &other) const
相等操作符。
ErrorCode
错误代码的枚举。
Definition: fs_basictypes.h:236
foxit::common::Rotation GetRotation() const
获取页面旋转角度。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
Definition: fs_basictypes.h:465
float GetHeight() const
获取页面高度。单位为1/72英寸。
bool IsEmpty() const
检查当前对象是否为空。
Definition: fs_fldpage.h:17
Rotation
旋转的枚举。
Definition: fs_common.h:57
Foxit命名空间。
Definition: fs_taggedpdf.h:27
bool IsParsed() const
检查当前对象是否已解析。
#define NULL
空指针值。
Definition: fx_system.h:792
Definition: fx_coordinates.h:1076
bool operator !=(const FLDPage &other) const
不相等操作符。
ErrorCode Parse() const
解析当前对象。
Definition: fx_coordinates.h:771