Class PDFTemplateCreator
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible.PDFTemplateCreator
-
public class PDFTemplateCreator extends java.lang.ObjectClass to build PDF template.- Author:
- Vakhtang Koroghlishvili
-
-
Constructor Summary
Constructors Constructor Description PDFTemplateCreator(PDFTemplateBuilder templateBuilder)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreambuildPDF(PDVisibleSignDesigner properties)Build a PDF with a visible signature step by step, and return it as a stream.PDFTemplateStructuregetPdfStructure()Returns the PDFTemplateStructure object.
-
-
-
Constructor Detail
-
PDFTemplateCreator
public PDFTemplateCreator(PDFTemplateBuilder templateBuilder)
Constructor.- Parameters:
templateBuilder- the template builder
-
-
Method Detail
-
getPdfStructure
public PDFTemplateStructure getPdfStructure()
Returns the PDFTemplateStructure object.- Returns:
- the template for the structure
-
buildPDF
public java.io.InputStream buildPDF(PDVisibleSignDesigner properties) throws java.io.IOException
Build a PDF with a visible signature step by step, and return it as a stream.- Parameters:
properties- properties to be used for the creation- Returns:
- InputStream stream containing the pdf holding the visible signature
- Throws:
java.io.IOException- if the PDF could not be created
-
-