Debenu Quick PDF logo

SetSignProcessPassthrough

Security and Signatures

Version history

This function was introduced in Quick PDF Library version 9.15.

Description

Sets the signature process to passthrough mode.

In this mode, the PDF is prepared using a placeholder for the signature data. The user can then replace this placeholder with the signature data of their choice using the GetSignProcessByteRange function to determine the byte range that the signature hashing should be calculated over.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetSignProcessPassthrough(SignProcessID, 
  SignatureLength: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetSignProcessPassthrough(
  SignProcessID As Long, SignatureLength As Long) As Long

DLL

int DPLSetSignProcessPassthrough(int InstanceID, int SignProcessID,
  int SignatureLength)

Parameters

SignProcessID A value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions.
SignatureLength The length in bytes of the raw binary signature data. This value will be doubled when allocating the space in the PDF as the signature data should be written using hex encoding (two characters per raw byte).

Return values

0 The signature could not be set into passthrough mode.
1 Success

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport