Class NativePdfBoxVisibleSignatureDrawer
java.lang.Object
eu.europa.esig.dss.pdf.pdfbox.visible.AbstractPdfBoxSignatureDrawer
eu.europa.esig.dss.pdf.pdfbox.visible.nativedrawer.NativePdfBoxVisibleSignatureDrawer
- All Implemented Interfaces:
PdfBoxSignatureDrawer
,SignatureDrawer
,SignatureFieldBoxBuilder
public class NativePdfBoxVisibleSignatureDrawer extends AbstractPdfBoxSignatureDrawer
The native PDFBox signature drawer.
Creates text in the native way.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pdf.pdfbox.visible.AbstractPdfBoxSignatureDrawer
document, parameters, signatureOptions
-
Constructor Summary
Constructors Constructor Description NativePdfBoxVisibleSignatureDrawer()
-
Method Summary
Modifier and Type Method Description SignatureFieldDimensionAndPosition
buildSignatureFieldBox()
Builds aSignatureFieldBox
, defining signature field position and dimensionvoid
draw()
Draw the visible signatureprotected String
getColorSpaceName(DSSDocument image)
Returns color space name for the provided imagevoid
init(SignatureImageParameters parameters, org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions signatureOptions)
Initializes the drawerMethods inherited from class eu.europa.esig.dss.pdf.pdfbox.visible.AbstractPdfBoxSignatureDrawer
checkColorSpace
-
Constructor Details
-
NativePdfBoxVisibleSignatureDrawer
public NativePdfBoxVisibleSignatureDrawer()
-
-
Method Details
-
init
public void init(SignatureImageParameters parameters, org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions signatureOptions) throws IOExceptionDescription copied from interface:PdfBoxSignatureDrawer
Initializes the drawer- Specified by:
init
in interfacePdfBoxSignatureDrawer
- Overrides:
init
in classAbstractPdfBoxSignatureDrawer
- Parameters:
parameters
-SignatureImageParameters
document
-PDDocument
signatureOptions
-SignatureOptions
- Throws:
IOException
- if an exception occurs
-
buildSignatureFieldBox
Description copied from interface:SignatureFieldBoxBuilder
Builds aSignatureFieldBox
, defining signature field position and dimension- Returns:
VisualSignatureFieldAppearance
- Throws:
IOException
- if an exception occurs
-
draw
Description copied from interface:SignatureDrawer
Draw the visible signature- Throws:
IOException
- if an exception occurs
-
getColorSpaceName
Description copied from class:AbstractPdfBoxSignatureDrawer
Returns color space name for the provided image- Specified by:
getColorSpaceName
in classAbstractPdfBoxSignatureDrawer
- Parameters:
image
-DSSDocument
to get color space name for- Returns:
String
color space name- Throws:
IOException
- in case of image reading error
-