iText 9.0.0 API
|
Properties to be used in signing operations. More...
Public Member Functions |
|
SignerProperties () | |
Create instance of SignerProperties. More... |
|
virtual DateTime | GetClaimedSignDate () |
Gets the signature date. More... |
|
virtual iText.Signatures.SignerProperties | SetClaimedSignDate (DateTime signDate) |
Sets the signature date. More... |
|
virtual iText.Signatures.SignerProperties | SetSignatureAppearance (SignatureFieldAppearance appearance) |
Sets the signature field layout element to customize the appearance of the signature. More... |
|
virtual SignatureFieldAppearance | GetSignatureAppearance () |
Gets signature field appearance object representing the appearance of the signature. More... |
|
virtual AccessPermissions | GetCertificationLevel () |
Returns the document's certification level. More... |
|
virtual iText.Signatures.SignerProperties | SetCertificationLevel (AccessPermissions accessPermissions) |
Sets the document's certification level. More... |
|
virtual String | GetFieldName () |
Gets the field name. More... |
|
virtual iText.Signatures.SignerProperties | SetFieldName (String fieldName) |
Sets the name indicating the field to be signed. More... |
|
virtual int | GetPageNumber () |
Provides the page number of the signature field which this signature appearance is associated with. More... |
|
virtual iText.Signatures.SignerProperties | SetPageNumber (int pageNumber) |
Sets the page number of the signature field which this signature appearance is associated with. More... |
|
virtual Rectangle | GetPageRect () |
Provides the rectangle that represent the position and dimension of the signature field in the page. More... |
|
virtual iText.Signatures.SignerProperties | SetPageRect (Rectangle pageRect) |
Sets the rectangle that represent the position and dimension of the signature field in the page. More... |
|
virtual PdfSigFieldLock | GetFieldLockDict () |
Getter for the field lock dictionary. More... |
|
virtual iText.Signatures.SignerProperties | SetFieldLockDict (PdfSigFieldLock fieldLock) |
Setter for the field lock dictionary. More... |
|
virtual String | GetSignatureCreator () |
Returns the signature creator. More... |
|
virtual iText.Signatures.SignerProperties | SetSignatureCreator (String signatureCreator) |
Sets the name of the application used to create the signature. More... |
|
virtual String | GetContact () |
Returns the signing contact. More... |
|
virtual iText.Signatures.SignerProperties | SetContact (String contact) |
Sets the signing contact. More... |
|
virtual String | GetReason () |
Returns the signing reason. More... |
|
virtual iText.Signatures.SignerProperties | SetReason (String reason) |
Sets the signing reason. More... |
|
virtual String | GetLocation () |
Returns the signing location. More... |
|
virtual iText.Signatures.SignerProperties | SetLocation (String location) |
Sets the signing location. More... |
|
Static Public Attributes |
|
const String | IGNORED_ID = "" |
This string could be used to create the iText.Forms.Form.Element.SignatureFieldAppearance instance which will be used for signing since its ID will be ignored anyway in that case, and specified ID won't override the field name. More... |
|
Properties to be used in signing operations.
|
inline |
Create instance of SignerProperties.
|
inlinevirtual |
Returns the document's certification level.
Returns the document's certification level. For possible values see AccessPermissions.
AccessPermissions enum which specifies which certification level shall be used
|
inlinevirtual |
Gets the signature date.
|
inlinevirtual |
Returns the signing contact.
|
inlinevirtual |
Getter for the field lock dictionary.
|
inlinevirtual |
Gets the field name.
|
inlinevirtual |
Returns the signing location.
|
inlinevirtual |
Provides the page number of the signature field which this signature appearance is associated with.
|
inlinevirtual |
Provides the rectangle that represent the position and dimension of the signature field in the page.
|
inlinevirtual |
Returns the signing reason.
|
inlinevirtual |
Gets signature field appearance object representing the appearance of the signature.
Gets signature field appearance object representing the appearance of the signature.
To customize the signature appearance, create new iText.Forms.Form.Element.SignatureFieldAppearance object and set it using SetSignatureAppearance(iText.Forms.Form.Element.SignatureFieldAppearance).
iText.Forms.Form.Element.SignatureFieldAppearance object representing signature appearance
|
inlinevirtual |
Returns the signature creator.
|
inlinevirtual |
Sets the document's certification level.
accessPermissions |
AccessPermissions enum which specifies which certification level shall be used
|
inlinevirtual |
Sets the signature date.
signDate | the signature date |
|
inlinevirtual |
Sets the signing contact.
contact | a new signing contact |
|
inlinevirtual |
Setter for the field lock dictionary.
Setter for the field lock dictionary.
Be aware: if a signature is created on an existing signature field, then its /Lock dictionary takes the precedence (if it exists).
fieldLock | field lock dictionary |
|
inlinevirtual |
Sets the name indicating the field to be signed.
Sets the name indicating the field to be signed. The field can already be presented in the document but shall not be signed. If the field is not presented in the document, it will be created.
Note that ID specified for iText.Forms.Form.Element.SignatureFieldAppearance set by SetSignatureAppearance(iText.Forms.Form.Element.SignatureFieldAppearance) will be ignored and won't override the field name.
fieldName | the name indicating the field to be signed |
|
inlinevirtual |
Sets the signing location.
location | a new signing location |
|
inlinevirtual |
Sets the page number of the signature field which this signature appearance is associated with.
pageNumber | the page number of the signature field which this signature appearance is associated with |
|
inlinevirtual |
Sets the rectangle that represent the position and dimension of the signature field in the page.
pageRect | the rectangle that represents the position and dimension of the signature field in the page |
|
inlinevirtual |
Sets the signing reason.
reason | a new signing reason |
|
inlinevirtual |
Sets the signature field layout element to customize the appearance of the signature.
Sets the signature field layout element to customize the appearance of the signature. ID specified for iText.Forms.Form.Element.SignatureFieldAppearance will be ignored and won't override field name, so IGNORED_ID could be used. To specify signature name use SetFieldName(System.String).
Note that if iText.Forms.Fields.Properties.SignedAppearanceText was set as the content (or part of the content) for iText.Forms.Form.Element.SignatureFieldAppearance object, PdfSigner properties such as signing date, reason, location and signer name could be set automatically.
In case you create new signature field (either using SetFieldName(System.String) with the name that doesn't exist in the document or do not specifying it at all) then the signature is invisible by default. Use SetPageRect(iText.Kernel.Geom.Rectangle) and SetPageNumber(int) to provide the rectangle that represent the position and dimension of the signature field in the specified page.
It is possible to set other appearance related properties such as iText.Forms.Fields.PdfSignatureFormField.SetReuseAppearance(bool) , iText.Forms.Fields.PdfSignatureFormField.SetBackgroundLayer(iText.Kernel.Pdf.Xobject.PdfFormXObject) (n0 layer) and iText.Forms.Fields.PdfSignatureFormField.SetSignatureAppearanceLayer(iText.Kernel.Pdf.Xobject.PdfFormXObject) (n2 layer) for the signature field using PdfSigner.GetSignatureField() . Page, rectangle and other properties could be also set up via SignerProperties.
appearance | the iText.Forms.Form.Element.SignatureFieldAppearance layout element representing signature appearance |
|
inlinevirtual |
Sets the name of the application used to create the signature.
signatureCreator | A new name of the application signing a document. |
|
static |
This string could be used to create the iText.Forms.Form.Element.SignatureFieldAppearance instance which will be used for signing since its ID will be ignored anyway in that case, and specified ID won't override the field name.