SignDoc Class Documentation
classSignDoc : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
Implementation of the PDF SignDoc function.
Use the SignDoc object to digitally sign a document
Referenced by
Constructor & Destructor Documentation
Property Documentation
CredentialDataFormat
CredentialDataFmtCredentialDataFormat[get, set]DigestCategory
DigestCategoryDigestCategory[get, set]DocSignType
SignatureTypeDocSignType[get, set]FieldID
SignatureFieldIDFieldID[get, set]FieldName
stringFieldName[get, set]OutputPath
stringOutputPath[get, set]SignatureBoxPageNumber
uintSignatureBoxPageNumber[get, set]SignatureBoxRectangle
RectSignatureBoxRectangle[get, set]Member Function Documentation
AddDigitalSignature
voidAddDigitalSignature(Documentdocument)Parameters
document: Document
Returns:
voidAdds a digital signature using the specified credentials. If the document has not been previously signed, signs and saves the entire document. If the document has been previously signed, signs and saves only the portions of the document that have changed. If the document has been previously signed and the path to which the file is saved is NULL or the same as the path specified by the parameter, doc, signs and copies the document, saving only the portions of the document that have changed.
ConstructorRetrieve
static SignDocConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
SignDocCreateCancelProc
voidCreateCancelProc(CancelProccancelProc)Parameters
cancelProc: CancelProc
Returns:
voidCreate Cancel Callback
CreateProgressMonitor
voidCreateProgressMonitor(ProgressMonitorprogMon)Parameters
progMon: ProgressMonitor
Returns:
voidCreate Progress Monitor
Dispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()Returns:
voidSetFieldObject
voidSetFieldObject(intaValue, intbValue)Parameters
aValue: inta value of the CosObject.
bValue: intb value of the CosObject.
Returns:
voidSet the form field CosObject option.
SetNonPfxPassPhrase
voidSetNonPfxPassPhrase(stringpassPhrase, uintpassphraseSize, CredentialStorageFmtstorageFmt)Parameters
passPhrase: stringPassphrase used to encrypt Non-PFX private key. Should be set to NULL if unencrypted.
passphraseSize: uintPassphrase size in bytes. Shall be set to 0 if private key is unencrypted or passphrase is stored on disk.
storageFmt: CredentialStorageFmtStorage format for passphrase.
Returns:
voidSet the passphrase used to decrypt Non-PFX credentials.
Note: The passphrase provided must use the exact same character encoding used to encrypt the private key. The application makes no effort whatsoever to re-encode the same.
SetNonPfxPrivateKey
voidSetNonPfxPrivateKey(stringprivateKey, uintkeySize, CredentialStorageFmtstorageFmt)Parameters
privateKey: stringPrivate key.
keySize: uintSize of private key in bytes. Shall be set to 0 if key is stored on disk.
storageFmt: CredentialStorageFmtStorage format for private key.
Returns:
voidSet the private key for Non-PFX credentials..
SetNonPfxSignerCert
voidSetNonPfxSignerCert(stringsignerCert, uintcertSize, CredentialStorageFmtstorageFmt)Parameters
signerCert: stringSigner certificate
certSize: uintSize of signer certificate in bytes. Shall be set to 0 if certificate is stored on disk.
storageFmt: CredentialStorageFmtStorage format for the signer certificate.
Returns:
voidSet the signer certificate for Non-PFX credentials.
SetPfxCredentials
voidSetPfxCredentials(stringcredentials, CredentialStorageFmtstorageFmt)Parameters
credentials: stringCredentials in PFX/PKCS#12 file format.
storageFmt: CredentialStorageFmtStorage format for the signer certificate. (Only OnDisk is allowed for this option)
Returns:
voidSet PFX/PKCS#12 credentials.
SetPfxPassPhrase
voidSetPfxPassPhrase(stringpassphrase, uintpassphraseSize, CredentialStorageFmtstorageFmt)Parameters
passphrase: stringPassphrase used to encrypt PFX/PKCS#12 credentials. Shall be set to NULL if credentials are unencrypted.
passphraseSize: uintPassphrase size in bytes. Shall be set to 0 if PFX credentials are unencrypted or passphrase is stored on disk.
storageFmt: CredentialStorageFmtStorage format for PFX/PKCS#12 credentials.
Returns:
voidSet the passphrase used to decrypt PFX/PKCS#12 credentials. Note: The passphrase provided must use the exact same character encoding used to encrypt the PFX credentials. The application makes no effort whatsoever to re-encode the same.
SetSignerInfo
voidSetSignerInfo(stringlogoFilePath, floatlogoOpacity, stringname, stringlocation, stringreason, stringcontactInfo, DisplayTraitsdisplayTraits)Parameters
logoFilePath: stringImage to display as part of signature appearance.
logoOpacity: floatOpacity of image to display as part of signature appearance.
name: stringName of the person or authority signing the document.
location: stringCPU host name or physical location of the signing.
reason: stringReason for signing the document.
contactInfo: stringInformation provided by the signer to enable recipients to contact signer for signature verification.
displayTraits: DisplayTraitsFields to display as part of signature appearance.
Returns:
voidSet Signer Info.