PdfSecurityManagerSign(String, String, IExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Method |
Signs the PDF document with an external signer - a key held in a hardware security module, a smart card, a USB
token or a key service.
Namespace: ExpertPdf.Anywhere.PDFSecurityAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic void Sign(
string sourcePdf,
string destPdf,
IExternalSigner signer,
string signatureName,
string reason,
string location,
string contactInfo,
int pageIndex,
RectangleF bounds,
TimeStampAuthority timeStampAuthority
)
Public Sub Sign (
sourcePdf As String,
destPdf As String,
signer As IExternalSigner,
signatureName As String,
reason As String,
location As String,
contactInfo As String,
pageIndex As Integer,
bounds As RectangleF,
timeStampAuthority As TimeStampAuthority
)
Parameters
- sourcePdf String
- Source PDF. The file that will be signed.
- destPdf String
- Destination PDF. The signed version of the file.
- signer IExternalSigner
- The signer that produces the signature value with its private key.
- signatureName String
- The name of the signature. An empty signature field of that name that the document
already has is signed in place.
- reason String
- The reason of signing.
- location String
- The location of signing.
- contactInfo String
- The signer contact info.
- pageIndex Int32
- Index of the page where the signature will be added.
- bounds RectangleF
- Location within the specified page of the signature. An empty rectangle makes an invisible
signature.
- timeStampAuthority TimeStampAuthority
- TSA server details. Can be null.
RemarksDigestAlgorithm,
EnableLtv,
CertificationLevel and the
signature background apply as they do to a signature made with a certificate file. The value the signer returns
is checked against its certificate before it is written.
See Also