public class PurchaseOrderPdf extends PurapPdf
campusName, cb, environment, headerTable, helv, isPreview, isRetransmit, logo, logoImage, nestedHeaderTable, po, tpl
Constructor and Description |
---|
PurchaseOrderPdf()
headerTable pieces need to be public
|
Modifier and Type | Method and Description |
---|---|
void |
generatePdf(PurchaseOrderDocument po,
PurchaseOrderTransmitParameters pdfParameters,
ByteArrayOutputStream byteArrayOutputStream,
boolean isRetransmit,
String environment,
List<PurchaseOrderItem> retransmitItems)
Generates the pdf document based on the data in the given PurchaseOrderDocument, the pdf parameters,
environment, retransmit items, creates a pdf writer using the given byteArrayOutputStream then
write the pdf document into the writer.
|
String |
getImageLocations(String existingLocation) |
String |
getNoteType(Integer noteTypeId) |
PurchaseOrderPdf |
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 and set its logo image if
there is a logoImage to be used, creates and sets the nestedHeaderTable and its content.
|
void |
savePdf(PurchaseOrderDocument po,
PurchaseOrderParameters pdfParameters,
boolean isRetransmit,
String environment)
Invokes the createPdf method to create a pdf document and saves it into a file
which name and location are specified in the pdfParameters.
|
deletePdf, getDateTimeService, getDocument, onCloseDocument, onEndPage, onStartPage
public PurchaseOrderPdf()
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 PurchaseOrderPdf getPageEvents()
getPageEvents
in class PurapPdf
public void generatePdf(PurchaseOrderDocument po, PurchaseOrderTransmitParameters pdfParameters, ByteArrayOutputStream byteArrayOutputStream, boolean isRetransmit, String environment, List<PurchaseOrderItem> retransmitItems)
po
- The PurchaseOrderDocument to be used to generate the pdf.pdfParameters
- The PurchaseOrderPdfParameters to be used to generate the pdf.byteArrayOutputStream
- The ByteArrayOutputStream where the pdf document will be written to.isRetransmit
- The boolean to indicate whether this is for a retransmit purchase order document.environment
- The current environment used (e.g. DEV if it is a development environment).retransmitItems
- The items selected by the user to be retransmitted.public void savePdf(PurchaseOrderDocument po, PurchaseOrderParameters pdfParameters, boolean isRetransmit, String environment)
po
- The PurchaseOrderDocument to be used to create the pdf.pdfParameters
- The pdfParameters containing some of the parameters information needed by the pdf for example, the pdf file name and pdf file location, purchasing director name, etc.isRetransmit
- The boolean to indicate whether this is for a retransmit purchase order document.environment
- The current environment used (e.g. DEV if it is a development environment).public String getImageLocations(String existingLocation)
public String getNoteType(Integer noteTypeId)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.