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 {
41 class Redaction FS_FINAL : public Base {
42  public:
52  explicit Redaction(const pdf::PDFDoc& document);
53 
59  Redaction(const Redaction& other);
60 
61  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
62  explicit Redaction(FS_HANDLE handle);
64  ~Redaction();
65 
73  Redaction& operator = (const Redaction& other);
81  bool operator == (const Redaction& other) const;
89  bool operator != (const Redaction& other) const;
90 
98  bool IsEmpty() const;
99 
127  pdf::annots::Redact MarkRedactAnnot(const pdf::PDFPage& page, const RectFArray& rects);
128 
139  bool Apply();
140 };
141 } // namespace addon
142 } // namespace foxit
143 
144 #endif // FS_REDACTION_H_
145 
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.
Redaction & operator=(const Redaction &other)
Assign operator.
Definition: fs_pdfdoc.h:389
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:5001
Header file for annotation related definitions and classes.
Definition: fs_pdfpage.h:342
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
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:399
Header file for PDF page related definitions and classes.
Redaction(const pdf::PDFDoc &document)
Constructor, from a PDF document object.
Foxit namespace.
Definition: fs_compare.h:27
Definition: fs_redaction.h:41