Class DataCollectionPdfModelPrinter
java.lang.Object
overit.geocallapp.wfm.mobileforms.bl.utils.DataCollectionPdfModelPrinter
The Class that defines the data collection pdf model printer.
- Since:
- 12.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected static final LogChannelprotected InputStreamprotected com.lowagie.text.pdf.PdfReaderprotected com.lowagie.text.pdf.PdfStamper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitialize(WebResource wrPdfModel, WebResource wrOutputFile) Initializes the reader, the stamper and set the encryption.voidprint(WebResource wrPdfModel, WebResource wrOutputFile, TreeModel<DataCollectionNode> tree) Converts the pdf model into an output file.
-
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
-
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 modelwrOutputFile- the wr output filetree- 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 modelwrOutputFile- the wr output file- Throws:
IOException- Signals that an I/O exception has occurred.com.lowagie.text.DocumentException- the document exception
-