public class PurchaseOrderQuoteRequestsPdf extends com.lowagie.text.pdf.PdfPageEventHelper
| Modifier and Type | Field and Description |
|---|---|
com.lowagie.text.pdf.PdfContentByte |
cb |
com.lowagie.text.pdf.PdfPTable |
headerTable |
com.lowagie.text.pdf.BaseFont |
helv |
PurchaseOrderDocument |
po |
com.lowagie.text.pdf.PdfTemplate |
tpl |
| Constructor and Description |
|---|
PurchaseOrderQuoteRequestsPdf() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePdf(String pdfFileLocation,
String pdfFilename)
Deletes an already created PDF.
|
Collection |
generatePOQuoteRequestsListPdf(PurchaseOrderDocument po,
ByteArrayOutputStream byteArrayOutputStream,
String institutionName)
Generates the purchase order quote request list pdf document based on the data in the given input parameters
by creating a pdf writer using the given byteArrayOutputStream then calls the createPOQuoteRequestsListPdf to
write the pdf document into the writer.
|
PurchaseOrderPdf |
getPageEvents()
Gets a PageEvents object.
|
void |
onCloseDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Overrides the method in the PdfPageEventHelper from itext to put the total number of pages into the template.
|
void |
onEndPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Overrides the method in PdfPageEventHelper from itext to compose the footer and show the
footer.
|
void |
onOpenDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Overrides the method in PdfPageEventHelper from itext to initialize the template and font for purchase
order quote request pdf documents.
|
Collection |
savePOQuoteRequestsListPdf(PurchaseOrderDocument po,
String pdfFileLocation,
String pdfFilename,
String institutionName)
Invokes the createPOQuoteRequestsListPdf method to create a purchase order quote list request pdf document
and saves it into a file which name and location are specified in the input parameters.
|
public com.lowagie.text.pdf.PdfTemplate tpl
public com.lowagie.text.pdf.PdfContentByte cb
public com.lowagie.text.pdf.PdfPTable headerTable
public PurchaseOrderDocument po
public com.lowagie.text.pdf.BaseFont helv
public PurchaseOrderQuoteRequestsPdf()
public void onOpenDocument(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
onOpenDocument in interface com.lowagie.text.pdf.PdfPageEventonOpenDocument in class com.lowagie.text.pdf.PdfPageEventHelperwriter - The PdfWriter for this document.document - The document.PdfPageEventHelper.onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)public void onEndPage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
onEndPage in interface com.lowagie.text.pdf.PdfPageEventonEndPage in class com.lowagie.text.pdf.PdfPageEventHelperwriter - The PdfWriter for this document.document - The document.PdfPageEventHelper.onEndPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)public void onCloseDocument(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
onCloseDocument in interface com.lowagie.text.pdf.PdfPageEventonCloseDocument in class com.lowagie.text.pdf.PdfPageEventHelperwriter - The PdfWriter for this document.document - The document.PdfPageEventHelper.onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)public PurchaseOrderPdf getPageEvents()
public Collection generatePOQuoteRequestsListPdf(PurchaseOrderDocument po, ByteArrayOutputStream byteArrayOutputStream, String institutionName)
po - The PurchaseOrderDocument to be used to generate the pdf.byteArrayOutputStream - The ByteArrayOutputStream to print the pdf to.institutionName - The purchasing institution name.public Collection savePOQuoteRequestsListPdf(PurchaseOrderDocument po, String pdfFileLocation, String pdfFilename, String institutionName)
po - The PurchaseOrderDocument to be used to generate the pdf.pdfFileLocation - The location to save the pdf file.pdfFilename - The name for the pdf file.institutionName - The purchasing institution name.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.