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 SignatureFieldDimensionAndPositionbuildSignatureFieldBox()Builds aSignatureFieldBox, defining signature field position and dimensionvoiddraw()Draw the visible signatureprotected StringgetColorSpaceName(DSSDocument image)Returns 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 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:PdfBoxSignatureDrawerInitializes the drawer- Specified by:
initin interfacePdfBoxSignatureDrawer- Overrides:
initin classAbstractPdfBoxSignatureDrawer- Parameters:
parameters-SignatureImageParametersdocument-PDDocumentsignatureOptions-SignatureOptions- Throws:
IOException- if an exception occurs
-
buildSignatureFieldBox
Description copied from interface:SignatureFieldBoxBuilderBuilds aSignatureFieldBox, defining signature field position and dimension- Returns:
VisualSignatureFieldAppearance- Throws:
IOException- if an exception occurs
-
draw
Description copied from interface:SignatureDrawerDraw the visible signature- Throws:
IOException- if an exception occurs
-
getColorSpaceName
Description copied from class:AbstractPdfBoxSignatureDrawerReturns color space name for the provided image- Specified by:
getColorSpaceNamein classAbstractPdfBoxSignatureDrawer- Parameters:
image-DSSDocumentto get color space name for- Returns:
Stringcolor space name- Throws:
IOException- in case of image reading error
-