TPDFlibRedactRegionRun
Data types, page manipulation
Description
Removes the content of one page region by editing the page content stream, so that the removed glyphs, vectors and image bytes cannot be recovered. TPDFlib calls the callback only when a document is selected and the rectangle is finite.
TPDFlib declares the public methods and a protected dispatch method for the true removal of the content of one page region. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibRedactRegionRun = Function(Page: Integer; Left, Top, Width, Height: Double;
Options: Integer): Integer Of Object;Parameters
| Page | One-based page number |
|---|---|
| Left, Top | Top-left corner of the region in current measurement units, with a top-left origin |
| Width, Height | Size of the region in current measurement units |
| Options | 0 removes and fills black with a Redact annotation, 1 removes only, 2 removes and adds the annotation without a fill |
Return values
| N |