Class DataCollectionPdfModelPrinter

java.lang.Object
overit.geocallapp.wfm.mobileforms.bl.utils.DataCollectionPdfModelPrinter

public class DataCollectionPdfModelPrinter extends Object
The Class that defines the data collection pdf model printer.
Since:
12.0
  • Field Details

    • BUFFER_SIZE

      public static final int BUFFER_SIZE
      See Also:
    • pdfReader

      protected com.lowagie.text.pdf.PdfReader pdfReader
    • pdfStamper

      protected com.lowagie.text.pdf.PdfStamper pdfStamper
    • pdfInputStream

      protected InputStream pdfInputStream
    • LOG

      protected static final LogChannel LOG
  • Constructor Details

    • DataCollectionPdfModelPrinter

      public DataCollectionPdfModelPrinter()
  • Method Details

    • print

      public void print(WebResource wrPdfModel, WebResource wrOutputFile, TreeModel<DataCollectionNode> tree) throws DAValidateException
      Converts the pdf model into an output file.
      Parameters:
      wrPdfModel - the wr pdf model
      wrOutputFile - the wr output file
      tree - the tree
      Throws:
      DAValidateException - the DA validate exception
    • initialize

      protected void initialize(WebResource wrPdfModel, WebResource wrOutputFile) throws IOException, com.lowagie.text.DocumentException
      Initializes the reader, the stamper and set the encryption.
      Parameters:
      wrPdfModel - the wr pdf model
      wrOutputFile - the wr output file
      Throws:
      IOException - Signals that an I/O exception has occurred.
      com.lowagie.text.DocumentException - the document exception