Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible

public Class PDFTemplateCreator

extends Object
Class Inheritance
Imports
java.awt.geom.AffineTransform, java.io.ByteArrayInputStream, .ByteArrayOutputStream, .IOException, .InputStream, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.cos.COSDocument, .COSName, org.apache.pdfbox.pdfwriter.COSWriter, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDResources, org.apache.pdfbox.pdmodel.common.PDRectangle, .PDStream, org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm, .PDSignatureField

Class to build PDF template.
Author
Vakhtang Koroghlishvili

Field Summary

Modifier and TypeField and Description
private static final Log
private final PDFTemplateBuilder

Constructor Summary

AccessConstructor and Description
public
PDFTemplateCreator(PDFTemplateBuilder
the template builder
templateBuilder
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public InputStream

Returns:

InputStream stream containing the pdf holding the visible signature
buildPDF
(PDVisibleSignDesigner
properties to be used for the creation
properties
)

Build a PDF with a visible signature step by step, and return it as a stream.

public PDFTemplateStructure

Returns:

the template for the structure
getPdfStructure
()

Returns the PDFTemplateStructure object.

private InputStream
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Log LOG
pdfBuilderback to summary
private final PDFTemplateBuilder pdfBuilder

Constructor Detail

PDFTemplateCreatorback to summary
public PDFTemplateCreator(PDFTemplateBuilder templateBuilder)

Constructor.

Parameters
templateBuilder:PDFTemplateBuilder

the template builder

Method Detail

buildPDFback to summary
public InputStream buildPDF(PDVisibleSignDesigner properties) throws IOException

Build a PDF with a visible signature step by step, and return it as a stream.

Parameters
properties:PDVisibleSignDesigner

properties to be used for the creation

Returns:InputStream

InputStream stream containing the pdf holding the visible signature

Exceptions
IOException:
if the PDF could not be created
getPdfStructureback to summary
public PDFTemplateStructure getPdfStructure()

Returns the PDFTemplateStructure object.

Returns:PDFTemplateStructure

the template for the structure

getVisualSignatureAsStreamback to summary
private InputStream getVisualSignatureAsStream(COSDocument visualSignature) throws IOException