Foxit PDF SDK
fs_ofdpage.h
浏览该文件的文档.
1 #if (defined(_WIN32) || defined(_WIN64))|| defined(__linux__)
2 
16 #ifndef FS_OFDPAGE_H_
17 #define FS_OFDPAGE_H_
18 
19 #include "common/fs_common.h"
20 
26 namespace foxit {
30 namespace addon {
34 namespace ofd {
41 class OFDPage FS_FINAL : public Base{
42  public:
44  OFDPage();
45 
49  OFDPage(const OFDPage& other);
50 
59  void Release();
60 
68  OFDPage& operator=(const OFDPage& other);
69 
77  bool operator==(const OFDPage& other) const;
78 
86  bool operator!=(const OFDPage& other) const;
87 
95  bool IsEmpty() const;
96 
102  float GetWidth() const;
103 
109  float GetHeight() const;
110 
125  Matrix GetDisplayMatrix(int left, int top, int width, int height, common::Rotation rotate);
126  // 强烈建议用户不要使用此方法;否则可能出现未知情况。
127  explicit OFDPage(FS_HANDLE handle);
128 };
129 
130 } // namespace ofd
131 } // namespace addon
132 } // namespace foxit
133 
134 #endif // FS_OFDPAGE_H_
135 
136 #endif // #if (defined(_WIN32) || defined(_WIN64)) || (defined(__linux__) && defined(__x86_64__) && !defined(__ANDROID__))
OFDPage()
构造函数。
Definition: fs_ofdpage.h:41
Matrix GetDisplayMatrix(int left, int top, int width, int height, common::Rotation rotate)
获取显示矩阵。
bool IsEmpty() const
检查当前对象是否为空。
OFDPage & operator=(const OFDPage &other)
赋值操作符。
float GetWidth() const
获取页面宽度(单位为1/72英寸)。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
通用定义和类的头文件。
float GetHeight() const
获取页面高度(单位为1/72英寸)。
Definition: fs_basictypes.h:449
Rotation
旋转的枚举。
Definition: fs_common.h:57
Foxit命名空间。
Definition: fs_taggedpdf.h:27
Definition: fx_coordinates.h:1076
bool operator!=(const OFDPage &other) const
不等于操作符。
void Release()
释放当前OFD页面对象。
bool operator==(const OFDPage &other) const
等于操作符。