| org.kuali.module.purap.pdf.PurapPdf
All known Subclasses: org.kuali.module.purap.pdf.PurchaseOrderPdf, org.kuali.module.purap.pdf.PurchaseOrderQuotePdf,
PurapPdf | public class PurapPdf extends PdfPageEventHelper (Code) | | Base class to be extended for implementing PDF documents in Purchasing/Accounts Payable module.
|
Method Summary | |
public void | deletePdf(String pdfFileLocation, String pdfFilename) Deletes an already created PDF. | public DateTimeService | getDateTimeService() | public Document | getDocument(float f1, float f2, float f3, float f4) Creates an instance of a new Document and set its margins according to
the given input parameters.
Parameters: f1 - Left margin. Parameters: f2 - Right margin. Parameters: f3 - Top margin. Parameters: f4 - Bottom margin. | public PurapPdf | getPageEvents() Gets a PageEvents object. | public void | onCloseDocument(PdfWriter writer, Document document) Overrides the method in the PdfPageEventHelper from itext to put the total number of pages into the template. | public void | onEndPage(PdfWriter writer, Document document) Overrides the method in PdfPageEventHelper from itext to write the headerTable, compose the footer and show the
footer. | public void | onStartPage(PdfWriter writer, Document document) Overrides the method in PdfPageEventHelper from itext to include our watermark text to indicate that
this is a Test document and include the environment, if the environment is not a production environment. |
cb | public PdfContentByte cb(Code) | | |
cour_10_normal | Font cour_10_normal(Code) | | |
headerTable | public PdfPTable headerTable(Code) | | |
helv | public BaseFont helv(Code) | | |
isRetransmit | public boolean isRetransmit(Code) | | |
nestedHeaderTable | public PdfPTable nestedHeaderTable(Code) | | |
tpl | public PdfTemplate tpl(Code) | | headerTable pieces need to be public
|
ver_10_bold | Font ver_10_bold(Code) | | |
ver_10_normal | Font ver_10_normal(Code) | | |
ver_11_normal | Font ver_11_normal(Code) | | |
ver_12_normal | Font ver_12_normal(Code) | | |
ver_13_normal | Font ver_13_normal(Code) | | |
ver_14_normal | Font ver_14_normal(Code) | | |
ver_15_normal | Font ver_15_normal(Code) | | |
ver_16_normal | Font ver_16_normal(Code) | | |
ver_17_normal | Font ver_17_normal(Code) | | |
ver_4_normal | Font ver_4_normal(Code) | | |
ver_5_normal | Font ver_5_normal(Code) | | |
ver_6_bold | Font ver_6_bold(Code) | | |
ver_6_normal | Font ver_6_normal(Code) | | |
ver_8_bold | Font ver_8_bold(Code) | | |
ver_8_normal | Font ver_8_normal(Code) | | |
PurapPdf | public PurapPdf()(Code) | | |
deletePdf | public void deletePdf(String pdfFileLocation, String pdfFilename)(Code) | | Deletes an already created PDF.
Parameters: pdfFileLocation - The location of the pdf file. Parameters: pdfFilename - The name of the pdf file. |
getDocument | public Document getDocument(float f1, float f2, float f3, float f4)(Code) | | Creates an instance of a new Document and set its margins according to
the given input parameters.
Parameters: f1 - Left margin. Parameters: f2 - Right margin. Parameters: f3 - Top margin. Parameters: f4 - Bottom margin. The created Document object. |
getPageEvents | public PurapPdf getPageEvents()(Code) | | Gets a PageEvents object.
a new PageEvents object |
onCloseDocument | public void onCloseDocument(PdfWriter writer, Document document)(Code) | | Overrides the method in the PdfPageEventHelper from itext to put the total number of pages into the template.
Parameters: writer - The PdfWriter for this document. Parameters: document - The document. See Also: com.lowagie.text.pdf.PdfPageEventHelper.onCloseDocument(com.lowagie.text.pdf.PdfWritercom.lowagie.text.Document) |
onEndPage | public void onEndPage(PdfWriter writer, Document document)(Code) | | Overrides the method in PdfPageEventHelper from itext to write the headerTable, compose the footer and show the
footer.
Parameters: writer - The PdfWriter for this document. Parameters: document - The document. See Also: com.lowagie.text.pdf.PdfPageEventHelper.onEndPage(com.lowagie.text.pdf.PdfWritercom.lowagie.text.Document) |
onStartPage | public void onStartPage(PdfWriter writer, Document document)(Code) | | Overrides the method in PdfPageEventHelper from itext to include our watermark text to indicate that
this is a Test document and include the environment, if the environment is not a production environment.
Parameters: writer - The PdfWriter for this document. Parameters: document - The document. See Also: com.lowagie.text.pdf.PdfPageEventHelper.onStartPage(com.lowagie.text.pdf.PdfWritercom.lowagie.text.Document) |
|
|