public class PurchaseOrderQuotePdf extends PurapPdf
campusName, cb, environment, headerTable, helv, isPreview, isRetransmit, logo, logoImage, nestedHeaderTable, po, tpl
Constructor and Description |
---|
PurchaseOrderQuotePdf() |
Modifier and Type | Method and Description |
---|---|
void |
generatePOQuotePDF(PurchaseOrderDocument po,
PurchaseOrderVendorQuote poqv,
String campusName,
String contractManagerCampusCode,
String logoImage,
ByteArrayOutputStream byteArrayOutputStream,
String environment)
Generates the purchase order quote pdf document based on the data in the given input parameters,
creates a pdf writer using the given byteArrayOutputStream then write the pdf document into the writer.
|
PurchaseOrderQuotePdf |
getPageEvents()
Gets a PageEvents object.
|
void |
onOpenDocument(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document)
Overrides the method in PdfPageEventHelper from itext to create and set the headerTable with relevant contents
and set its logo image if there is a logoImage to be used.
|
void |
savePOQuotePDF(PurchaseOrderDocument po,
PurchaseOrderVendorQuote poqv,
PurchaseOrderParameters transmitParameters,
String environment)
Invokes the createPOQuotePDF method to create a purchase order quote pdf document and saves it into a file
which name and location are specified in the pdfParameters.
|
deletePdf, getDateTimeService, getDocument, onCloseDocument, onEndPage, onStartPage
public PurchaseOrderQuotePdf()
public void onOpenDocument(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
onOpenDocument
in interface com.lowagie.text.pdf.PdfPageEvent
onOpenDocument
in class com.lowagie.text.pdf.PdfPageEventHelper
writer
- The PdfWriter for this document.document
- The document.PdfPageEventHelper.onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)
public PurchaseOrderQuotePdf getPageEvents()
getPageEvents
in class PurapPdf
public void generatePOQuotePDF(PurchaseOrderDocument po, PurchaseOrderVendorQuote poqv, String campusName, String contractManagerCampusCode, String logoImage, ByteArrayOutputStream byteArrayOutputStream, String environment)
po
- The PurchaseOrderDocument to be used to generate the pdf.poqv
- The PurchaseOrderVendorQuote to be used to generate the pdf.campusName
- The campus name to be used to generate the pdf.contractManagerCampusCode
- The contract manager campus code to be used to generate the pdf.logoImage
- The logo image file name to be used to generate the pdf.byteArrayOutputStream
- The ByteArrayOutputStream to print the pdf to.environment
- The current environment used (e.g. DEV if it is a development environment).public void savePOQuotePDF(PurchaseOrderDocument po, PurchaseOrderVendorQuote poqv, PurchaseOrderParameters transmitParameters, String environment)
po
- The PurchaseOrderDocument to be used to generate the pdf.poqv
- The PurchaseOrderVendorQuote to be used to generate the pdf.pdfFileLocation
- The location to save the pdf file.pdfFilename
- The name for the pdf file.campusName
- The campus name to be used to generate the pdf.contractManagerCampusCode
- The contract manager campus code to be used to generate the pdf.logoImage
- The logo image file name to be used to generate the pdf.environment
- The current environment used (e.g. DEV if it is a development environment).Copyright © 2004–2015 The Kuali Foundation. All rights reserved.