org.kuali.kfs.module.purap.pdf
Class PurchaseOrderQuotePdf
java.lang.Object
com.lowagie.text.pdf.PdfPageEventHelper
org.kuali.kfs.module.purap.pdf.PurapPdf
org.kuali.kfs.module.purap.pdf.PurchaseOrderQuotePdf
- All Implemented Interfaces:
- com.lowagie.text.pdf.PdfPageEvent
public class PurchaseOrderQuotePdf
- extends PurapPdf
Fields inherited from class org.kuali.kfs.module.purap.pdf.PurapPdf |
campusName, cb, environment, headerTable, helv, isPreview, isRetransmit, logo, logoImage, nestedHeaderTable, po, tpl |
Method Summary |
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. |
Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper |
onChapter, onChapterEnd, onGenericTag, onParagraph, onParagraphEnd, onSection, onSectionEnd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurchaseOrderQuotePdf
public PurchaseOrderQuotePdf()
onOpenDocument
public 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.
- Specified by:
onOpenDocument
in interface com.lowagie.text.pdf.PdfPageEvent
- Overrides:
onOpenDocument
in class com.lowagie.text.pdf.PdfPageEventHelper
- Parameters:
writer
- The PdfWriter for this document.document
- The document.- See Also:
PdfPageEventHelper.onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)
getPageEvents
public PurchaseOrderQuotePdf getPageEvents()
- Gets a PageEvents object.
- Overrides:
getPageEvents
in class PurapPdf
- Returns:
- a new PageEvents object
generatePOQuotePDF
public 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.
- Parameters:
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).
savePOQuotePDF
public 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.
- Parameters:
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 © 2005-2012 The Kuali Foundation. All Rights Reserved.