Foxit PDF SDK
fs_ofdpage.h
Go to the documentation of this file.
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  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
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__))
Definition: fs_ofdpage.h:41
Matrix GetDisplayMatrix(int left, int top, int width, int height, common::Rotation rotate)
Get display matrix.
bool IsEmpty() const
Check whether current object is empty or not.
OFDPage & operator=(const OFDPage &other)
Assign operator.
float GetWidth() const
Get page width (unit is 1/72 inch).
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
float GetHeight() const
Get page height (unit is 1/72 inch).
Definition: fs_basictypes.h:443
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
Foxit namespace.
Definition: fs_pdf3d.h:27
Definition: fx_coordinates.h:1076
bool operator!=(const OFDPage &other) const
Not equal operator.
void Release()
Release current OFD page object.
bool operator==(const OFDPage &other) const
Equal operator.