THotPDF.PreparePDFForSigning Method

Prepara un PDF sin firmar para la firma externa, reservando el área del contenedor de la firma y generando los rangos de bytes que firma quien llama.

Declaración

class function PreparePDFForSigning(var PDFBytes: AnsiString; out Range1Start: Integer; out Range1Length: Integer; out Range2Start: Integer; out Range2Length: Integer; out ContentsHexStart: Integer; out ContentsHexLen: Integer): boolean;

Observaciones

PDFBytes es el documento guardado que preparó THPDFPage.AddSignedSignatureField. El método sustituye en su sitio el marcador /ByteRange por los valores reales y devuelve False cuando no encuentra ningún marcador