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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draw the visible signatureprotected ITextDSSFontMetricsReturns the associated with the drawer font metricsprotected com.lowagie.text.pdf.PdfNameReturns color space name for the provided imagevoidinit(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:ITextSignatureDrawerInitializes the drawer- Specified by:
initin interfaceITextSignatureDrawer- Overrides:
initin classAbstractITextSignatureDrawer- Parameters:
parameters-SignatureImageParametersreader-PdfReaderappearance-PdfSignatureAppearance
-
draw
-
getDSSFontMetrics
Description copied from class:AbstractITextSignatureDrawerReturns the associated with the drawer font metrics- Specified by:
getDSSFontMetricsin classAbstractITextSignatureDrawer- Returns:
DSSFontMetrics
-
getExpectedColorSpaceName
protected com.lowagie.text.pdf.PdfName getExpectedColorSpaceName()Description copied from class:AbstractITextSignatureDrawerReturns color space name for the provided image- Specified by:
getExpectedColorSpaceNamein classAbstractITextSignatureDrawer- Returns:
PdfNamecolor space name
-