ComPdfUtil.SignPdfByThumbprint Method

Printer API Documentation
Apply a digital signature to a PDF document.

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax

public void SignPdfByThumbprint(
	string printerName,
	string inputFileName,
	string outputFileName,
	string certificateThumbprint,
	string certificateStoreName,
	string certificateStoreLocation,
	string signReason,
	string signContact,
	string signLocation,
	bool displaySignature,
	float signLLX,
	float signLLY,
	float signRUX,
	float signRUY,
	int signPage
)

Parameters

printerName
Type: System.String
Name of PDF printer.
inputFileName
Type: System.String
The PDF document you want to sign
outputFileName
Type: System.String
File name of the resulting signed document
certificateThumbprint
Type: System.String
Thumb-print string of certificate in the certificate store.
certificateStoreName
Type: System.String
Name of the certificate store (AddressBook, AuthRoot, CertificateAuthority, Disallowed, My (default), Root, TrustedPeople, TrustedPublisher)
certificateStoreLocation
Type: System.String
Location of the certificate store (CurrentUser (default), LocalMachine).
signReason
Type: System.String
Optional sign reason
signContact
Type: System.String
Optional sign contact
signLocation
Type: System.String
Optional sign location
displaySignature
Type: System.Boolean
Should the signature be shown in the document?
signLLX
Type: System.Single
Optional lower left corner X-value of visible signature
signLLY
Type: System.Single
Optional lower left corner Y-value of visible signature
signRUX
Type: System.Single
Optional upper right corner X-value of visible signature
signRUY
Type: System.Single
Optional upper right corner Y-value of visible signature
signPage
Type: System.Int32
Optional page number to sign. Page 1 is default.
See Also

Reference