Apply a digital signature to a PDF document.

Namespace:  bioPDF.PdfWriter
Assembly:  bioPDF.PdfWriter (in bioPDF.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Sub SignPdfByThumbprintEx ( _
	printerName As String, _
	inputFileName As String, _
	outputFileName As String, _
	certificateThumbprint As String, _
	certificateStoreName As String, _
	certificateStoreLocation As String, _
	signReason As String, _
	signContact As String, _
	signLocation As String, _
	displaySignature As Boolean, _
	signLLX As Single, _
	signLLY As Single, _
	signRUX As Single, _
	signRUY As Single, _
	signPage As Integer, _
	ownerPassword As String, _
	userPassword As String, _
	encryptionType As String, _
	allowAssembly As Boolean, _
	allowCopy As Boolean, _
	allowDegradedPrinting As Boolean, _
	allowFillIn As Boolean, _
	allowModifyAnnotations As Boolean, _
	allowModifyContents As Boolean, _
	allowPrinting As Boolean, _
	allowScreenReaders As Boolean _
)
C#
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
)
Visual C++
public:
virtual 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
) sealed
JavaScript
function signPdfByThumbprintEx(printerName, inputFileName, outputFileName, certificateThumbprint, certificateStoreName, certificateStoreLocation, signReason, signContact, signLocation, displaySignature, signLLX, signLLY, signRUX, signRUY, signPage, ownerPassword, userPassword, encryptionType, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenReaders);

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
Thumbprint 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.
ownerPassword
Type: System..::.String
Owner password for PDF encryption.
userPassword
Type: System..::.String
User password for PDF encryption.
encryptionType
Type: System..::.String
Type and streangth of encryption.
allowAssembly
Type: System..::.Boolean
Allow assembly.
allowCopy
Type: System..::.Boolean
Allow copy to clipboard.
allowDegradedPrinting
Type: System..::.Boolean
Allow degraded printing.
allowFillIn
Type: System..::.Boolean
Allow fill in.
allowModifyAnnotations
Type: System..::.Boolean
Allow modifying annotations.
allowModifyContents
Type: System..::.Boolean
Allow modifying contents.
allowPrinting
Type: System..::.Boolean
Allow printing.
allowScreenReaders
Type: System..::.Boolean
Allow screen readers.

See Also