Foxit PDF SDK
fs_ofdpermission.h
1 #ifndef FS_OFD_PERMISSION_H_
2 #define FS_OFD_PERMISSION_H_
3 
4 #include "common/fs_common.h"
5 
11 namespace foxit {
15 namespace ofd {
17 class OFDPermission : public Base {
18  public:
21 
27  OFDPermission(const OFDPermission& other);
28 
37 
45  bool operator == (const OFDPermission& other) const;
46 
54  bool operator != (const OFDPermission& other) const;
55 
63  bool IsEmpty() const;
64 
72  void EnableEditable(bool editable);
73 
81  void EnableAllowAnnot(bool allow_annot);
82 
90  void EnableExportable(bool exportable);
91 
99  void EnableAllowSignature(bool allow_signature);
100 
108  void EnableAllowWatermark(bool allow_watermark);
109 
117  void EnableAllowPrintScreen(bool allow_print_screen);
118 
126  void EnablePrintable(bool printable);
127 
135  void SetPrintCopies(int print_copies);
136 
144  void SetStartDate(const foxit::DateTime& start_date);
145 
153  void SetExpirationDate(const foxit::DateTime& expiration_date);
154 
160  bool IsEditable() const;
161 
167  bool IsAllowAnnot() const;
168 
174  bool IsExportable() const;
175 
181  bool IsAllowSignature() const;
182 
188  bool IsAllowWatermark() const;
189 
195  bool IsAllowPrintScreen() const;
196 
202  bool IsPrintable() const;
203 
209  int GetPrintCopies() const;
210 
217 
224 
225  explicit OFDPermission(FS_HANDLE handle);
226 };
227 
228 } // namespace ofd
229 } // namespace foxit
230 
231 #endif // FS_OFD_PERMISSION_H_
bool operator==(const OFDPermission &other) const
相等操作符。
OFDPermission(const OFDPermission &other)
构造函数,通过另一个OFD权限对象。
void EnableAllowWatermark(bool allow_watermark)
设置是否允许使用水印。
void EnablePrintable(bool printable)
设置是否允许打印。
bool IsAllowAnnot() const
是否允许使用注释。
Definition: fs_basictypes.h:498
foxit::DateTime GetStartDate() const
获取有效期开始时间。
bool IsPrintable() const
是否允许打印。
bool IsEditable() const
是否允许编辑。
bool IsAllowSignature() const
是否允许使用签名或签章。
void EnableExportable(bool exportable)
设置是否允许导出。
bool IsEmpty() const
检查当前对象是否为空。
void EnableEditable(bool editable)
设置是否允许编辑。
bool IsAllowPrintScreen() const
是否允许打印到屏幕。
void SetPrintCopies(int print_copies)
设置允许打印份数。
Definition: fs_ofdpermission.h:17
bool IsAllowWatermark() const
是否允许使用水印。
~OFDPermission()
析构函数。
void EnableAllowPrintScreen(bool allow_print_screen)
设置是否允许打印到屏幕。
bool operator !=(const OFDPermission &other) const
不相等操作符。
OFDPermission & operator=(const OFDPermission &other)
赋值操作符。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
Definition: fs_basictypes.h:465
bool IsExportable() const
是否允许导出。
Foxit命名空间。
Definition: fs_pdf3d.h:26
void SetStartDate(const foxit::DateTime &start_date)
设置有效期开始时间。
void EnableAllowSignature(bool allow_signature)
设置是否允许签名或签章。
void EnableAllowAnnot(bool allow_annot)
设置是否允许使用注释。
int GetPrintCopies() const
获取允许打印的份数。
void SetExpirationDate(const foxit::DateTime &expiration_date)
设置有效期结束日期。
foxit::DateTime GetExpirationDate() const
获取有效期截止时间。