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  // 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__))
foxit::FS_HANDLE
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
fs_common.h
Header file for common definitions and classes.
foxit::common::Rotation
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
operator==
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
foxit
Foxit namespace.
Definition: fs_taggedpdf.h:27
operator!=
bool operator!=(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are not equal.
Definition: fs_basictypes.h:140
foxit::Matrix
CFX_Matrix Matrix
Matrix information, in float.
Definition: fs_basictypes.h:445