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
public class NativePdfBoxVisibleSignatureDrawer extends AbstractPdfBoxSignatureDrawer
-
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 void
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)
Methods 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 IOException- Specified by:
init
in interfacePdfBoxSignatureDrawer
- Overrides:
init
in classAbstractPdfBoxSignatureDrawer
- Throws:
IOException
-
draw
Description copied from interface:SignatureDrawer
Draw the visible signature- Throws:
IOException
-
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
-