AddRedactAnnotation
Anotaciones y enlaces de zona activa
Descripción
Añade en la página seleccionada una anotación de propuesta /Subtype /Redact según ISO 32000-1 §12.5.6.23 para flujos de censura en dos fases, escribiendo el color de relleno interior /IC, /OverlayText y el indicador booleano estándar /Repeat
Sintaxis
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);
Parámetros
| Left, Top, Width, Height | Rectángulo de censura en las unidades de medición y origen de coordenadas actuales |
|---|---|
| FillR, FillG, FillB | Componentes del color de relleno interior RGB (0,0 a 1,0) escritos en /IC |
| OverlayText | Etiqueta de sustitución opcional escrita en /OverlayText |
| RepeatOverlay | Un valor distinto de cero fija /Repeat true para que el texto de superposición se repita por la región censurada |
Valores devueltos
| > 0 | El índice de la anotación basado en 1 en la página actual, o 0 en caso de fallo |
|---|