THotPDF.PreparePDFForSigning Method

Method summary: THotPDF.PreparePDFForSigning Method

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 rewrites the /ByteRange placeholder in place with the real values and returns False when it finds no placeholder