|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfPageEventHelper
org.kuali.kfs.module.purap.pdf.PurchaseOrderQuoteRequestsPdf
public class PurchaseOrderQuoteRequestsPdf
Base class to handle pdf for purchase order quote request documents.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
PurchaseOrderQuoteRequestsPdf()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper |
|---|
onChapter, onChapterEnd, onGenericTag, onParagraph, onParagraphEnd, onSection, onSectionEnd, onStartPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public PurchaseOrderQuoteRequestsPdf()
| Method Detail |
|---|
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.
public void deletePdf(String pdfFileLocation,
String pdfFilename)
pdfFileLocation - The location to save the pdf file.pdfFilename - The name for the pdf file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||