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
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
ConstructorDescriptionDefault constructor instantiating object with default parameter values -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw()
Draw the visible signatureprotected DSSFontMetrics
Gets the correspondingeu.europa.esig.dss.pdf.visible.DSSFontMetrics
protected String
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 drawervoid
setResourcesHandlerBuilder
(DSSResourcesHandlerBuilder resourcesHandlerBuilder) SetsDSSResourcesFactoryBuilder
to be used for aDSSResourcesFactory
creation Default :eu.europa.esig.dss.signature.resources.InMemoryResourcesHandler
.Methods inherited from class eu.europa.esig.dss.pdf.pdfbox.visible.AbstractPdfBoxSignatureDrawer
addColorSpace, buildSignatureFieldBox, checkColorSpace
-
Constructor Details
-
NativePdfBoxVisibleSignatureDrawer
public NativePdfBoxVisibleSignatureDrawer()Default constructor instantiating object with default parameter values
-
-
Method Details
-
setResourcesHandlerBuilder
SetsDSSResourcesFactoryBuilder
to be used for aDSSResourcesFactory
creation Default :eu.europa.esig.dss.signature.resources.InMemoryResourcesHandler
. Works with data in memory.- Parameters:
resourcesHandlerBuilder
-DSSResourcesHandlerBuilder
-
init
public void init(SignatureImageParameters parameters, org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions signatureOptions) throws IOException Description 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
-
getDSSFontMetrics
Description copied from class:AbstractPdfBoxSignatureDrawer
Gets the correspondingeu.europa.esig.dss.pdf.visible.DSSFontMetrics
- Specified by:
getDSSFontMetrics
in classAbstractPdfBoxSignatureDrawer
- Returns:
DSSFontMetrics
-
draw
Description copied from interface:SignatureDrawer
Draw the visible signature- Throws:
IOException
- if an exception occurs
-
getExpectedColorSpaceName
Description copied from class:AbstractPdfBoxSignatureDrawer
Returns color space name for the provided image- Specified by:
getExpectedColorSpaceName
in classAbstractPdfBoxSignatureDrawer
- Returns:
String
color space name- Throws:
IOException
- in case of image reading error
-