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 SignPdfByThumbprintEx( 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, string ownerPassword, string userPassword, string encryptionType, bool allowAssembly, bool allowCopy, bool allowDegradedPrinting, bool allowFillIn, bool allowModifyAnnotations, bool allowModifyContents, bool allowPrinting, bool allowScreenReaders )
Parameters
- printerName
- Type: SystemString
Name of PDF printer. - inputFileName
- Type: SystemString
The PDF document you want to sign - outputFileName
- Type: SystemString
File name of the resulting signed document - certificateThumbprint
- Type: SystemString
Thumbprint string of certificate in the certificate store. - certificateStoreName
- Type: SystemString
Name of the certificate store (AddressBook, AuthRoot, CertificateAuthority, Disallowed, My (default), Root, TrustedPeople, TrustedPublisher) - certificateStoreLocation
- Type: SystemString
Location of the certificate store (CurrentUser (default), LocalMachine). - signReason
- Type: SystemString
Optional sign reason - signContact
- Type: SystemString
Optional sign contact - signLocation
- Type: SystemString
Optional sign location - displaySignature
- Type: SystemBoolean
Should the signature be shown in the document? - signLLX
- Type: SystemSingle
Optional lower left corner X-value of visible signature - signLLY
- Type: SystemSingle
Optional lower left corner Y-value of visible signature - signRUX
- Type: SystemSingle
Optional upper right corner X-value of visible signature - signRUY
- Type: SystemSingle
Optional upper right corner Y-value of visible signature - signPage
- Type: SystemInt32
Optional page number to sign. Page 1 is default. - ownerPassword
- Type: SystemString
Owner password for PDF encryption. - userPassword
- Type: SystemString
User password for PDF encryption. - encryptionType
- Type: SystemString
Type and strength of encryption. - allowAssembly
- Type: SystemBoolean
Allow assembly. - allowCopy
- Type: SystemBoolean
Allow copy to clipboard. - allowDegradedPrinting
- Type: SystemBoolean
Allow degraded printing. - allowFillIn
- Type: SystemBoolean
Allow fill in. - allowModifyAnnotations
- Type: SystemBoolean
Allow modifying annotations. - allowModifyContents
- Type: SystemBoolean
Allow modifying contents. - allowPrinting
- Type: SystemBoolean
Allow printing. - allowScreenReaders
- Type: SystemBoolean
Allow screen readers.
See Also