THotPDF.PreparePDFForSigning Method

Prepares an unsigned PDF for external signing by reserving the signature container area and producing byte ranges that the caller signs.

Declaration

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;

Remarks

PDFBytes is the saved document that THPDFPage.AddSignedSignatureField prepared. The method replaces the /ByteRange placeholder with the real values in place and returns False when no placeholder is found