java.lang.Object
org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible.PDFTemplateCreator

public class PDFTemplateCreator extends Object
Class to build PDF template.
  • Field Details

    • pdfBuilder

      private final PDFTemplateBuilder pdfBuilder
    • LOG

      private static final org.apache.commons.logging.Log LOG
  • Constructor Details

    • PDFTemplateCreator

      public PDFTemplateCreator(PDFTemplateBuilder templateBuilder)
      Constructor.
      Parameters:
      templateBuilder - the template builder
  • Method Details

    • getPdfStructure

      public PDFTemplateStructure getPdfStructure()
      Returns the PDFTemplateStructure object.
      Returns:
      the template for the structure
    • buildPDF

      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 - properties to be used for the creation
      Returns:
      InputStream stream containing the pdf holding the visible signature
      Throws:
      IOException - if the PDF could not be created
    • getVisualSignatureAsStream

      private InputStream getVisualSignatureAsStream(COSDocument visualSignature) throws IOException
      Throws:
      IOException