easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

SignatureInfoPurpose Property

Gets/Sets purpose (reason for signing) information.

Deprecated. SHA-1 is no longer considered secure against well-funded opponents.

string SignatureInfoPurpose { get; set; }

Property SignatureInfoPurpose As String

def getSignatureInfoPurpose(self)
def setSignatureInfoPurpose(self, value)

String getSignatureInfoPurpose() throws PrinterException
void setSignatureInfoPurpose(String value) throws PrinterException

function getSignatureInfoPurpose() 
function setSignatureInfoPurpose($value) 

BclPrnResult GetSignatureInfoPurpose(BclPrinter* pPrinter,
                                     wchar_t** poutVal);
BclPrnResult SetSignatureInfoPurpose(BclPrinter* pPrinter,
                                     const wchar_t* newVal);
Property SignatureInfoPurpose As String

bepprint +Signature -purpose <string>




You can add the signature details associated with a particular PDF file such as "Reason for Signing", "Contact Information" and "Location." These information will be included with your signature.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

' Create a digital ID (do this only if you do not have digital ID already)
oPDFSetting.SignatureCreateDigitalID "C:\test\my_digital_id.pfx",  _
                                     "password_here", _
                                     "John Smith", _
                                     "US", _
                                     "Organization Name", _
                                     "Organization Unit", _
                                     "My Email Address", _

' You can retrieve a certificate file from digital ID and
' have other people use it to verify your signed document.
oPDFSetting.SignatureExportCertificate "C:\test\my_certificate.cer", _
                                       "C:\test\my_digital_id.pfx", _

' Enable digital signature
oPDFSetting.Signature = True

' Set digital ID file
oPDFSetting.SignatureDigitalIDFileName = "C:\test\my_digital_id.pfx"

' Insert an image which will visually represent a signature
oPDFSetting.SignatureImage = True
oPDFSetting.SignatureImageFileName = "C:\test\signature.bmp"
oPDFSetting.SignatureImagePosLeft = 1.0 ' 1.0 inch from left
oPDFSetting.SignatureImagePosTop = 1.0 ' 1.0 inch from top
oPDFSetting.SignatureImageZoom = 100 ' percent
oPDFSetting.SignatureInfoContact = "Contact info"
oPDFSetting.SignatureInfoLocation = "Location info"
oPDFSetting.SignatureInfoPurpose = "Purpose info"

' Set digital ID password before PDF conversion
oPrintJob.SignatureDigitalIDPassword = "password_here"

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"