iText 8.0.5 API
|
Provides convenient methods to make a signature appearance. More...
Public Types |
|
enum | RenderingMode { RenderingMode.DESCRIPTION, RenderingMode.NAME_AND_DESCRIPTION, RenderingMode.GRAPHIC_AND_DESCRIPTION, RenderingMode.GRAPHIC } |
Signature rendering modes. More... |
|
Public Member Functions |
|
virtual int | GetPageNumber () |
Provides the page number of the signature field which this signature appearance is associated with. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | 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.PdfSignatureAppearance | SetPageRect (Rectangle pageRect) |
Sets the rectangle that represent the position and dimension of the signature field in the page. More... |
|
virtual PdfFormXObject | GetLayer0 () |
Get Layer 0 of the appearance. More... |
|
virtual PdfFormXObject | GetLayer2 () |
Get Layer 2 of the appearance. More... |
|
virtual PdfSignatureAppearance.RenderingMode | GetRenderingMode () |
Gets the rendering mode for this signature. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetRenderingMode (PdfSignatureAppearance.RenderingMode renderingMode) |
Sets the rendering mode for this signature. More... |
|
virtual String | GetReason () |
Returns the signing reason. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetReason (String reason) |
Sets the signing reason. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetReasonCaption (String reasonCaption) |
Sets the caption for the signing reason. More... |
|
virtual String | GetLocation () |
Returns the signing location. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLocation (String location) |
Sets the signing location. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLocationCaption (String locationCaption) |
Sets the caption for the signing location. More... |
|
virtual String | GetSignatureCreator () |
Returns the signature creator. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | 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.PdfSignatureAppearance | SetContact (String contact) |
Sets the signing contact. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetCertificate (IX509Certificate signCertificate) |
Sets the certificate used to provide the text in the appearance. More... |
|
virtual IX509Certificate | GetCertificate () |
Get the signing certificate. More... |
|
virtual ImageData | GetSignatureGraphic () |
Gets the Image object to render. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetSignatureGraphic (ImageData signatureGraphic) |
Sets the Image object to render when Render is set to RenderingMode.GRAPHIC or RenderingMode.GRAPHIC_AND_DESCRIPTION. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetReuseAppearance (bool reuseAppearance) |
Indicates that the existing appearances needs to be reused as a background layer. More... |
|
virtual ImageData | GetImage () |
Gets the background image for the layer 2. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetImage (ImageData image) |
Sets the background image for the text in the layer 2. More... |
|
virtual float | GetImageScale () |
Gets the scaling to be applied to the background image. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetImageScale (float imageScale) |
Sets the scaling to be applied to the background image. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLayer2Text (String text) |
Sets the signature text identifying the signer. More... |
|
virtual String | GetLayer2Text () |
Gets the signature text identifying the signer if set by setLayer2Text(). More... |
|
virtual PdfFont | GetLayer2Font () |
Gets the n2 and n4 layer font. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLayer2Font (PdfFont font) |
Sets the n2 layer font. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLayer2FontSize (float fontSize) |
Sets the n2 and n4 layer font size. More... |
|
virtual float | GetLayer2FontSize () |
Gets the n2 and n4 layer font size. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetLayer2FontColor (Color color) |
Sets the n2 and n4 layer font color. More... |
|
virtual Color | GetLayer2FontColor () |
Gets the n2 layer font color. More... |
|
virtual SignatureFieldAppearance | GetSignatureAppearance () |
Gets the signature layout element. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetSignatureAppearance (SignatureFieldAppearance modelElement) |
Sets the signature layout element. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetFontProvider (FontProvider fontProvider) |
Sets iText.Layout.Font.FontProvider. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetFontFamily (params String[] fontFamilyNames) |
Sets the preferable font families for the signature content. More... |
|
virtual bool | IsInvisible () |
Gets the visibility status of the signature. More... |
|
Package Functions |
|
PdfSignatureAppearance (PdfDocument document, Rectangle pageRect, int pageNumber) | |
Creates a PdfSignatureAppearance. More... |
|
virtual PdfFormXObject | GetAppearance () |
Constructs appearance (top-level) for a signature. More... |
|
virtual DateTime | GetSignDate () |
Returns the signature date. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetSignDate (DateTime signDate) |
Sets the signature date. More... |
|
virtual iText.Signatures.PdfSignatureAppearance | SetFieldName (String fieldName) |
Set the field name of the appearance. More... |
|
Provides convenient methods to make a signature appearance.
Provides convenient methods to make a signature appearance. Use it in conjunction with PdfSigner.
Signature rendering modes.
|
inlinepackage |
Creates a PdfSignatureAppearance.
document | PdfDocument |
pageRect | Rectangle of the appearance |
pageNumber | Number of the page the appearance should be on |
|
inlinepackagevirtual |
Constructs appearance (top-level) for a signature.
|
inlinevirtual |
Get the signing certificate.
|
inlinevirtual |
Returns the signing contact.
|
inlinevirtual |
Gets the background image for the layer 2.
|
inlinevirtual |
Gets the scaling to be applied to the background image.
|
inlinevirtual |
Get Layer 0 of the appearance.
Get Layer 0 of the appearance.
The size of the layer is determined by the rectangle set via SetPageRect(iText.Kernel.Geom.Rectangle)
|
inlinevirtual |
Get Layer 2 of the appearance.
Get Layer 2 of the appearance.
The size of the layer is determined by the rectangle set via SetPageRect(iText.Kernel.Geom.Rectangle)
|
inlinevirtual |
Gets the n2 and n4 layer font.
|
inlinevirtual |
Gets the n2 layer font color.
|
inlinevirtual |
Gets the n2 and n4 layer font size.
|
inlinevirtual |
Gets the signature text identifying the signer if set by setLayer2Text().
|
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 the rendering mode for this signature.
|
inlinevirtual |
Gets the signature layout element.
|
inlinevirtual |
Returns the signature creator.
|
inlinevirtual |
Gets the Image object to render.
|
inlinepackagevirtual |
Returns the signature date.
|
inlinevirtual |
Gets the visibility status of the signature.
|
inlinevirtual |
Sets the certificate used to provide the text in the appearance.
Sets the certificate used to provide the text in the appearance. This certificate doesn't take part in the actual signing process.
signCertificate | the certificate. |
|
inlinevirtual |
Sets the signing contact.
contact | A new signing contact. |
|
inlinepackagevirtual |
Set the field name of the appearance.
Set the field name of the appearance. Field name indicates the field to be signed if it is already presented in the document (signing existing field). Required for reuseAppearance option.
fieldName | name of the field |
|
inlinevirtual |
Sets the preferable font families for the signature content.
Sets the preferable font families for the signature content. Note that iText.Layout.Font.FontProvider shall be set as well.
fontFamilyNames | defines an ordered list of preferable font families for the signature element. |
|
inlinevirtual |
Sets iText.Layout.Font.FontProvider.
Sets iText.Layout.Font.FontProvider . Note, font provider is inherited property.
fontProvider | the instance of iText.Layout.Font.FontProvider. |
|
inlinevirtual |
Sets the background image for the text in the layer 2.
image | the background image for the layer 2. |
|
inlinevirtual |
Sets the scaling to be applied to the background image.
Sets the scaling to be applied to the background image. If it's zero the image will fully fill the rectangle. If it's less than zero the image will fill the rectangle but will keep the proportions. If it's greater than zero that scaling will be applied. In any of the cases the image will always be centered. It's zero by default.
imageScale | the scaling to be applied to the background image. |
|
inlinevirtual |
Sets the n2 layer font.
Sets the n2 layer font. If the font size is zero, auto-fit will be used.
font | the n2 font. |
|
inlinevirtual |
Sets the n2 and n4 layer font color.
color | font color. |
|
inlinevirtual |
Sets the n2 and n4 layer font size.
fontSize | font size. |
|
inlinevirtual |
Sets the signature text identifying the signer.
text | the signature text identifying the signer. If null or not set a standard description will be used. |
|
inlinevirtual |
Sets the signing location.
location | A new signing location. |
|
inlinevirtual |
Sets the caption for the signing location.
locationCaption | A new signing location caption. |
|
inlinevirtual |
Sets the page number of the signature field which this signature appearance is associated with.
Sets the page number of the signature field which this signature appearance is associated with. Implicitly calls SetPageRect(iText.Kernel.Geom.Rectangle) which considers page number to process the rectangle correctly.
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 | signing reason. |
|
inlinevirtual |
Sets the caption for the signing reason.
reasonCaption | A new signing reason caption. |
|
inlinevirtual |
Sets the rendering mode for this signature.
renderingMode | the rendering mode. |
|
inlinevirtual |
Indicates that the existing appearances needs to be reused as a background layer.
reuseAppearance | is an appearances reusing flag value to set. |
|
inlinevirtual |
Sets the signature layout element.
modelElement | the signature layout element. |
|
inlinevirtual |
Sets the name of the application used to create the signature.
signatureCreator | A new name of the application signing a document. |
|
inlinevirtual |
Sets the Image object to render when Render is set to RenderingMode.GRAPHIC or RenderingMode.GRAPHIC_AND_DESCRIPTION.
signatureGraphic | image rendered. If null the mode is defaulted to RenderingMode.DESCRIPTION |
|
inlinepackagevirtual |
Sets the signature date.
signDate | A new signature date. |