AddRedactAnnotationA
Annotations and hotspot links
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddRedactAnnotation and string arguments are interpreted using the current SetAnsiMode code page
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 DLAddRedactAnnotationA(InstanceID: Integer; Left, Top, Width, Height, FillR, FillG, FillB: Double; OverlayText: PAnsiChar; RepeatOverlay: Integer): Integer;
DLL
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, Height | Redaction rectangle in current measurement units and coordinate origin |
|---|---|
| FillR, FillG, FillB | Interior RGB fill colour components (0.0 to 1.0) written to /IC |
| OverlayText | Optional replacement label written to /OverlayText |
| RepeatOverlay | Non-zero sets /Repeat true so the overlay text repeats across the redacted region |
Return values
| > 0 | The 1-based annotation index on the current page, or 0 on failure |
|---|