My Project
|
Public Member Functions | |
Redaction (const pdf::PDFDoc &document) | |
Constructor, from a PDF document object. More... | |
Redaction (const Redaction &other) | |
Constructor, with another redaction object. More... | |
~Redaction () | |
Destructor. | |
bool | Apply () |
Apply redaction in marked areas: remove the text or graphics under marked areas permanently. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
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. More... | |
bool | operator != (const Redaction &other) const |
Not equal operator. More... | |
Redaction & | operator= (const Redaction &other) |
Assign operator. More... | |
bool | operator== (const Redaction &other) const |
Equal operator. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
Redacting a PDF file allows user to hide sensitive information while keeping the document's formatting. This class can be used to mark page contents with redact annotations and apply redaction to permanently remove (redact) visible text and images from PDF documents to protect confidential information such as social security numbers.
|
explicit |
Constructor, from a PDF document object.
[in] | document | A valid PDF document object. |
foxit::addon::Redaction::Redaction | ( | const Redaction & | other | ) |
Constructor, with another redaction object.
[in] | other | Another redaction object. |
bool foxit::addon::Redaction::Apply | ( | ) |
Apply redaction in marked areas: remove the text or graphics under marked areas permanently.
Once this functions is called, all the marked page content(text object, image object, and path object) in the document will be removed permanently. All the redact annotations which specify marked areas will be removed (with their pop-up annotations) and these marked areas will be filled by the color specified by pdf::annots::Redact::SetApplyFillColor.
bool foxit::addon::Redaction::IsEmpty | ( | ) | const |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
pdf::annots::Redact foxit::addon::Redaction::MarkRedactAnnot | ( | const pdf::PDFPage & | page, |
const RectFArray & | rects | ||
) |
Mark page contents (text object, image object, and path object) which are to be redacted.
This function is to add special marks (called redact annotation) to the specified rectangles areas, in order to redact page contents in these areas. Usually, the marked area has two appearance:
Once function Redaction::Apply is called, all the page contents under these marked area will be removed permanently and these marked areas will keep their rollover appearance all the time.
[in] | page | A PDF page whose content will be marked. |
[in] | rects | Specify areas in the page to be marked. It should not be an empty array. All the input rectangles will be treated as one redact annotation. |
bool foxit::addon::Redaction::operator != | ( | const Redaction & | other | ) | const |
Not equal operator.
[in] | other | Another redaction object. This function will check if current object is not equal to this one. |
Assign operator.
[in] | other | Another redaction object, whose value would be assigned to current object. |
bool foxit::addon::Redaction::operator== | ( | const Redaction & | other | ) | const |
Equal operator.
[in] | other | Another redaction object. This function will check if current object is equal to this one. |