public class PurapPdf extends com.lowagie.text.pdf.PdfPageEventHelper
Modifier and Type | Field and Description |
---|---|
String |
campusName |
com.lowagie.text.pdf.PdfContentByte |
cb |
String |
environment |
com.lowagie.text.pdf.PdfPTable |
headerTable |
com.lowagie.text.pdf.BaseFont |
helv |
boolean |
isPreview |
boolean |
isRetransmit |
com.lowagie.text.Image |
logo |
String |
logoImage |
com.lowagie.text.pdf.PdfPTable |
nestedHeaderTable |
PurchaseOrderDocument |
po |
com.lowagie.text.pdf.PdfTemplate |
tpl
headerTable pieces need to be public
|
Constructor and Description |
---|
PurapPdf() |
Modifier and Type | Method and Description |
---|---|
void |
deletePdf(String pdfFileLocation,
String pdfFilename)
Deletes an already created PDF.
|
org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
com.lowagie.text.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.
|
PurapPdf |
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 write the headerTable, compose the footer and show the
footer.
|
void |
onStartPage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.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.
|
public com.lowagie.text.pdf.PdfTemplate tpl
public com.lowagie.text.pdf.PdfContentByte cb
public com.lowagie.text.Image logo
public com.lowagie.text.pdf.PdfPTable headerTable
public com.lowagie.text.pdf.PdfPTable nestedHeaderTable
public String campusName
public PurchaseOrderDocument po
public com.lowagie.text.pdf.BaseFont helv
public String environment
public boolean isPreview
public boolean isRetransmit
public PurapPdf()
public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void onStartPage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
onStartPage
in interface com.lowagie.text.pdf.PdfPageEvent
onStartPage
in class com.lowagie.text.pdf.PdfPageEventHelper
writer
- The PdfWriter for this document.document
- The document.PdfPageEventHelper.onStartPage(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.PdfPageEvent
onEndPage
in class com.lowagie.text.pdf.PdfPageEventHelper
writer
- 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.PdfPageEvent
onCloseDocument
in class com.lowagie.text.pdf.PdfPageEventHelper
writer
- The PdfWriter for this document.document
- The document.PdfPageEventHelper.onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)
public PurapPdf getPageEvents()
public com.lowagie.text.Document getDocument(float f1, float f2, float f3, float f4)
f1
- Left margin.f2
- Right margin.f3
- Top margin.f4
- Bottom margin.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.