Class TextOnlySignatureDrawer
java.lang.Object
eu.europa.esig.dss.pdf.openpdf.visible.AbstractITextSignatureDrawer
eu.europa.esig.dss.pdf.openpdf.visible.TextOnlySignatureDrawer
- All Implemented Interfaces:
ITextSignatureDrawer
,SignatureDrawer
,SignatureFieldBoxBuilder
iText drawer used for visual signature creation with text data only
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pdf.openpdf.visible.AbstractITextSignatureDrawer
appearance, parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw()
Draw the visible signatureprotected ITextDSSFontMetrics
Returns the associated with the drawer font metricsprotected com.lowagie.text.pdf.PdfName
Returns color space name for the provided imagevoid
init
(SignatureImageParameters parameters, com.lowagie.text.pdf.PdfReader reader, com.lowagie.text.pdf.PdfSignatureAppearance appearance) Initializes the drawerMethods inherited from class eu.europa.esig.dss.pdf.openpdf.visible.AbstractITextSignatureDrawer
addColorSpace, buildSignatureFieldBox, checkColorSpace, getFinalRotation, getPageAnnotationBox, getPageRotation, getRotatedAnnotationRelativelyPageRotation, toAnnotationBox, toITextRectangle
-
Constructor Details
-
TextOnlySignatureDrawer
public TextOnlySignatureDrawer()Default constructor with null font
-
-
Method Details
-
init
public void init(SignatureImageParameters parameters, com.lowagie.text.pdf.PdfReader reader, com.lowagie.text.pdf.PdfSignatureAppearance appearance) Description copied from interface:ITextSignatureDrawer
Initializes the drawer- Specified by:
init
in interfaceITextSignatureDrawer
- Overrides:
init
in classAbstractITextSignatureDrawer
- Parameters:
parameters
-SignatureImageParameters
reader
-PdfReader
appearance
-PdfSignatureAppearance
-
draw
public void draw()Description copied from interface:SignatureDrawer
Draw the visible signature -
getDSSFontMetrics
Description copied from class:AbstractITextSignatureDrawer
Returns the associated with the drawer font metrics- Specified by:
getDSSFontMetrics
in classAbstractITextSignatureDrawer
- Returns:
DSSFontMetrics
-
getExpectedColorSpaceName
protected com.lowagie.text.pdf.PdfName getExpectedColorSpaceName()Description copied from class:AbstractITextSignatureDrawer
Returns color space name for the provided image- Specified by:
getExpectedColorSpaceName
in classAbstractITextSignatureDrawer
- Returns:
PdfName
color space name
-