| org.kuali.module.purap.pdf.PurapPdf org.kuali.module.purap.pdf.PurchaseOrderPdf
PurchaseOrderPdf | public class PurchaseOrderPdf extends PurapPdf (Code) | | Base class to handle pdf for purchase order documents.
|
Method Summary | |
public void | generatePdf(PurchaseOrderDocument po, PurchaseOrderPdfParameters 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.
Parameters: po - The PurchaseOrderDocument to be used to generate the pdf. Parameters: pdfParameters - The PurchaseOrderPdfParameters to be used to generate the pdf. Parameters: byteArrayOutputStream - The ByteArrayOutputStream where the pdf document will be written to. Parameters: isRetransmit - The boolean to indicate whether this is for a retransmit purchase order document. Parameters: environment - The current environment used (e.g. | public PurchaseOrderPdf | getPageEvents() Gets a PageEvents object. | public void | onOpenDocument(PdfWriter writer, 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. | public void | savePdf(PurchaseOrderDocument po, PurchaseOrderPdfParameters 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.
Parameters: po - The PurchaseOrderDocument to be used to create the pdf. Parameters: 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. Parameters: isRetransmit - The boolean to indicate whether this is for a retransmit purchase order document. Parameters: environment - The current environment used (e.g. |
PurchaseOrderPdf | public PurchaseOrderPdf()(Code) | | headerTable pieces need to be public
|
generatePdf | public void generatePdf(PurchaseOrderDocument po, PurchaseOrderPdfParameters pdfParameters, ByteArrayOutputStream byteArrayOutputStream, boolean isRetransmit, String environment, List<PurchaseOrderItem> retransmitItems)(Code) | | 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.
Parameters: po - The PurchaseOrderDocument to be used to generate the pdf. Parameters: pdfParameters - The PurchaseOrderPdfParameters to be used to generate the pdf. Parameters: byteArrayOutputStream - The ByteArrayOutputStream where the pdf document will be written to. Parameters: isRetransmit - The boolean to indicate whether this is for a retransmit purchase order document. Parameters: environment - The current environment used (e.g. DEV if it is a development environment). Parameters: retransmitItems - The items selected by the user to be retransmitted. |
onOpenDocument | public void onOpenDocument(PdfWriter writer, Document document)(Code) | | 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.
Parameters: writer - The PdfWriter for this document. Parameters: document - The document. See Also: com.lowagie.text.pdf.PdfPageEventHelper.onOpenDocument(com.lowagie.text.pdf.PdfWritercom.lowagie.text.Document) |
savePdf | public void savePdf(PurchaseOrderDocument po, PurchaseOrderPdfParameters pdfParameters, boolean isRetransmit, String environment)(Code) | | Invokes the createPdf method to create a 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 create the pdf. Parameters: 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. Parameters: isRetransmit - The boolean to indicate whether this is for a retransmit purchase order document. Parameters: environment - The current environment used (e.g. DEV if it is a development environment). |
|
|