AddRedactAnnotation

Annotations and hotspot links

Description

Appends an ISO 32000-1 §12.5.6.23 /Subtype /Redact proposal annotation on the selected page for two-phase redaction workflows, writing /IC interior fill colour, /OverlayText, and the standard boolean /Repeat flag

Syntax

Delphi

Function TPDFlib.AddRedactAnnotation(Left, Top, Width, Height, FillR, FillG, FillB: Double; Const OverlayText: WideString; RepeatOverlay: Integer= 0): Integer;

ActiveX

Function PDFlib::AddRedactAnnotation(Left As Double, Top As Double, Width As Double, Height As Double, FillR As Double, FillG As Double, FillB As Double, OverlayText As String, RepeatOverlay As Long) As Long

DLL

int DLAddRedactAnnotation(int InstanceID, double Left, double Top, double Width, double Height, double FillR, double FillG, double FillB, const wchar_t* OverlayText, int RepeatOverlay);
int DLAddRedactAnnotationA(int InstanceID, double Left, double Top, double Width, double Height, double FillR, double FillG, double FillB, const char* OverlayText, int RepeatOverlay);

Parameters

Left, Top, Width, HeightRedaction rectangle in current measurement units and coordinate origin
FillR, FillG, FillBInterior RGB fill colour components (0.0 to 1.0) written to /IC
OverlayTextOptional replacement label written to /OverlayText
RepeatOverlayNon-zero sets /Repeat true so the overlay text repeats across the redacted region

Return values

> 0The 1-based annotation index on the current page, or 0 on failure