Foxit PDF SDK
fs_redaction.h
Go to the documentation of this file.
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  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
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 
163  void EnableFileStream(const WString& temp_directory_path, ApplyRedactionCallback* apply_redaction_callback);
164 
175  bool Apply();
176 
193 };
194 } // namespace addon
195 } // namespace foxit
196 
197 #endif // FS_REDACTION_H_
198 
pdf::annots::Redact MarkRedactAnnot(const pdf::PDFPage &page, const RectFArray &rects)
Mark page contents (text object, image object, and path object) which are to be redacted.
Header file for PDF document related definitions and classes.
void EnableFileStream(const WString &temp_directory_path, ApplyRedactionCallback *apply_redaction_callback)
Enable file stream for image object during applying.
Redaction & operator=(const Redaction &other)
Assign operator.
WIDE STRING CLASS.
Definition: fx_string.h:1461
Definition: fs_pdfdoc.h:776
bool Apply()
Apply redaction in marked areas: remove the text or graphics under marked areas permanently.
bool operator !=(const Redaction &other) const
Not equal operator.
Definition: fs_annot.h:5784
Header file for annotation related definitions and classes.
Definition: fx_basic.h:3758
Definition: fs_redaction.h:37
Definition: fs_common.h:373
common::Progressive StartApply(common::PauseCallback *pause=0)
Start to apply redaction in marked areas: remove the text or graphics under marked areas permanently.
virtual bool NeedToGenerateStreamFile()=0
A callback function used to check whether to generate stream file or not.
Definition: fs_pdfpage.h:412
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
Header file for common definitions and classes.
bool operator==(const Redaction &other) const
Equal operator.
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fs_basictypes.h:451
Header file for PDF page related definitions and classes.
Redaction(const pdf::PDFDoc &document)
Constructor, from a PDF document object.
Foxit namespace.
Definition: fs_taggedpdf.h:27
virtual void Release()=0
A callback function used to release current callback object itself.
#define NULL
The null-pointer value.
Definition: fx_system.h:792
Definition: fs_redaction.h:62