Class PDFTemplateCreator


  • public class PDFTemplateCreator
    extends java.lang.Object
    Class to build PDF template.
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
    • 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
      • getVisualSignatureAsStream

        private java.io.InputStream getVisualSignatureAsStream​(COSDocument visualSignature)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException