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
ConstructorsConstructorDescriptionDefault constructor instantiating object with default parameter values -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draw the visible signatureprotected DSSFontMetricsGets the correspondingeu.europa.esig.dss.pdf.visible.DSSFontMetricsprotected StringReturns color space name for the provided imagevoidinit(SignatureImageParameters parameters, org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions signatureOptions) Initializes the drawervoidsetResourcesHandlerBuilder(DSSResourcesHandlerBuilder resourcesHandlerBuilder) SetsDSSResourcesFactoryBuilderto be used for aDSSResourcesFactorycreation 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
SetsDSSResourcesFactoryBuilderto be used for aDSSResourcesFactorycreation 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:PdfBoxSignatureDrawerInitializes the drawer- Specified by:
initin interfacePdfBoxSignatureDrawer- Overrides:
initin classAbstractPdfBoxSignatureDrawer- Parameters:
parameters-SignatureImageParametersdocument-PDDocumentsignatureOptions-SignatureOptions- Throws:
IOException- if an exception occurs
-
getDSSFontMetrics
Description copied from class:AbstractPdfBoxSignatureDrawerGets the correspondingeu.europa.esig.dss.pdf.visible.DSSFontMetrics- Specified by:
getDSSFontMetricsin classAbstractPdfBoxSignatureDrawer- Returns:
DSSFontMetrics
-
draw
Description copied from interface:SignatureDrawerDraw the visible signature- Throws:
IOException- if an exception occurs
-
getExpectedColorSpaceName
Description copied from class:AbstractPdfBoxSignatureDrawerReturns color space name for the provided image- Specified by:
getExpectedColorSpaceNamein classAbstractPdfBoxSignatureDrawer- Returns:
Stringcolor space name- Throws:
IOException- in case of image reading error
-