Class AbstractITextSignatureDrawer
java.lang.Object
eu.europa.esig.dss.pdf.openpdf.visible.AbstractITextSignatureDrawer
- All Implemented Interfaces:
ITextSignatureDrawer,SignatureDrawer,SignatureFieldBoxBuilder
- Direct Known Subclasses:
ImageOnlySignatureDrawer,TextOnlySignatureDrawer
public abstract class AbstractITextSignatureDrawer extends Object implements ITextSignatureDrawer, SignatureFieldBoxBuilder
The abstract implementation of an IText (OpenPDF) signature drawer
-
Field Summary
Fields Modifier and Type Field Description protected com.lowagie.text.pdf.PdfSignatureAppearanceappearanceThe visual signature appearanceprotected SignatureImageParametersparametersVisual signature parametersprotected StringsignatureFieldIdThe signature field id to be signed -
Constructor Summary
Constructors Constructor Description AbstractITextSignatureDrawer() -
Method Summary
Modifier and Type Method Description voidinit(String signatureFieldId, SignatureImageParameters parameters, com.lowagie.text.pdf.PdfSignatureAppearance appearance)Initializes the drawerprotected com.lowagie.text.RectangletoITextRectangle(ITextVisualSignatureAppearance appearanceRectangle)Transforms the givenappearanceRectangleto acom.lowagie.text.Rectanglewith the given page sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.pdf.visible.SignatureDrawer
drawMethods inherited from interface eu.europa.esig.dss.pdf.visible.SignatureFieldBoxBuilder
buildSignatureFieldBox
-
Field Details
-
signatureFieldId
The signature field id to be signed -
parameters
Visual signature parameters -
appearance
protected com.lowagie.text.pdf.PdfSignatureAppearance appearanceThe visual signature appearance
-
-
Constructor Details
-
AbstractITextSignatureDrawer
public AbstractITextSignatureDrawer()
-
-
Method Details
-
init
public void init(String signatureFieldId, SignatureImageParameters parameters, com.lowagie.text.pdf.PdfSignatureAppearance appearance) throws IOExceptionDescription copied from interface:ITextSignatureDrawerInitializes the drawer- Specified by:
initin interfaceITextSignatureDrawer- Parameters:
signatureFieldId-Stringparameters-SignatureImageParametersappearance-PdfSignatureAppearance- Throws:
IOException- if an exception occurs
-
toITextRectangle
protected com.lowagie.text.Rectangle toITextRectangle(ITextVisualSignatureAppearance appearanceRectangle)Transforms the givenappearanceRectangleto acom.lowagie.text.Rectanglewith the given page size- Parameters:
appearanceRectangle-ITextVisualSignatureAppearance- Returns:
Rectangle
-