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.PdfSignatureAppearance
appearance
The visual signature appearanceprotected SignatureImageParameters
parameters
Visual signature parametersprotected String
signatureFieldId
The signature field id to be signed -
Constructor Summary
Constructors Constructor Description AbstractITextSignatureDrawer()
-
Method Summary
Modifier and Type Method Description void
init(String signatureFieldId, SignatureImageParameters parameters, com.lowagie.text.pdf.PdfSignatureAppearance appearance)
Initializes the drawerprotected com.lowagie.text.Rectangle
toITextRectangle(ITextVisualSignatureAppearance appearanceRectangle)
Transforms the givenappearanceRectangle
to acom.lowagie.text.Rectangle
with the given page sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.pdf.visible.SignatureDrawer
draw
Methods 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:ITextSignatureDrawer
Initializes the drawer- Specified by:
init
in interfaceITextSignatureDrawer
- Parameters:
signatureFieldId
-String
parameters
-SignatureImageParameters
appearance
-PdfSignatureAppearance
- Throws:
IOException
- if an exception occurs
-
toITextRectangle
protected com.lowagie.text.Rectangle toITextRectangle(ITextVisualSignatureAppearance appearanceRectangle)Transforms the givenappearanceRectangle
to acom.lowagie.text.Rectangle
with the given page size- Parameters:
appearanceRectangle
-ITextVisualSignatureAppearance
- Returns:
Rectangle
-