THPDFPage.AddRedactAnnotationEx Method
Adds an extended redaction annotation to the annotation and action workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing or page rendering steps
Declaration
function AddRedactAnnotationEx(Rectangle: TRect; const OverlayText: AnsiString = ''; const Contents: AnsiString = ''; BorderColor: TColor = clRed; InteriorColor: TColor = clBlack; RepeatOverlay: Boolean = False; Justification: THPDFFormFieldJustification = ffjLeft; GenerateRolloverAppearance: Boolean = True): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Rectangle | Page area or widget rectangle where the operation is applied |
OverlayText | Input supplied to AddRedactAnnotationEx |
Contents | Human-readable text stored in the PDF object, action, annotation or structure element |
BorderColor | Colour component or colour value used by the painting or resource operation |
InteriorColor | Colour component or colour value used by the painting or resource operation |
RepeatOverlay | Input supplied to AddRedactAnnotationEx |
Justification | Input supplied to AddRedactAnnotationEx |
GenerateRolloverAppearance | Input supplied to AddRedactAnnotationEx |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the annotation and action workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak