Foxit PDF SDK
fs_redaction.h
浏览该文件的文档.
1 
15 #ifndef FS_REDACTION_H_
16 #define FS_REDACTION_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 #include "pdf/fs_pdfpage.h"
21 #include "pdf/annots/fs_annot.h"
22 
28 namespace foxit {
32 namespace addon {
38  public:
44  virtual void Release() = 0;
45 
51  virtual bool NeedToGenerateStreamFile() = 0;
52 };
53 
62 class Redaction FS_FINAL : public Base {
63  public:
73  explicit Redaction(const pdf::PDFDoc& document);
74 
80  Redaction(const Redaction& other);
81 
82  // 强烈建议用户不要使用此方法;否则可能会出现未知情况。
83  explicit Redaction(FS_HANDLE handle);
85  ~Redaction();
86 
94  Redaction& operator = (const Redaction& other);
102  bool operator == (const Redaction& other) const;
110  bool operator != (const Redaction& other) const;
111 
119  bool IsEmpty() const;
120 
148  pdf::annots::Redact MarkRedactAnnot(const pdf::PDFPage& page, const RectFArray& rects);
149 
162  void EnableFileStream(const WString& temp_directory_path, ApplyRedactionCallback* apply_redaction_callback);
163 
174  bool Apply();
175 
192 };
193 } // namespace addon
194 } // namespace foxit
195 
196 #endif // FS_REDACTION_H_
197 
pdf::annots::Redact MarkRedactAnnot(const pdf::PDFPage &page, const RectFArray &rects)
标记要进行保护密文处理的页面内容(文本对象、图像对象和路径对象)。
PDF文档相关定义和类的头文件。
void EnableFileStream(const WString &temp_directory_path, ApplyRedactionCallback *apply_redaction_callback)
在应用过程中为图像对象启用文件流。
Redaction & operator=(const Redaction &other)
赋值操作符。
宽字符串类
Definition: fx_string.h:1457
Definition: fs_pdfdoc.h:771
bool Apply()
在标记区域应用保护密文:永久删除标记区域下的文本或图形。
bool operator !=(const Redaction &other) const
不相等操作符。
Definition: fs_annot.h:5593
注释相关定义和类的头文件。
Definition: fx_basic.h:3737
~Redaction()
析构函数。
Definition: fs_redaction.h:37
Definition: fs_common.h:373
common::Progressive StartApply(common::PauseCallback *pause=0)
开始在标记区域应用保护密文:永久删除标记区域下的文本或图形。
virtual bool NeedToGenerateStreamFile()=0
用于检查是否生成流文件的回调函数。
Definition: fs_pdfpage.h:421
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
通用定义和类的头文件。
bool operator==(const Redaction &other) const
相等操作符。
bool IsEmpty() const
检查当前对象是否为空。
Definition: fs_basictypes.h:449
PDF页面相关定义和类的头文件。
Redaction(const pdf::PDFDoc &document)
构造函数,从 PDF 文档对象构造。
Foxit命名空间。
Definition: fs_taggedpdf.h:27
virtual void Release()=0
用于释放当前回调对象本身的回调函数。
#define NULL
空指针值。
Definition: fx_system.h:792
Definition: fs_redaction.h:62