|
||||||||||
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.PurapPdf
public class PurapPdf
Base class to be extended for implementing PDF documents in Purchasing/Accounts Payable module.
Field Summary | |
---|---|
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 Summary | |
---|---|
PurapPdf()
|
Method Summary | |
---|---|
void |
deletePdf(String pdfFileLocation,
String pdfFilename)
Deletes an already created PDF. |
org.kuali.rice.kns.service.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. |
Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper |
---|
onChapter, onChapterEnd, onGenericTag, onOpenDocument, onParagraph, onParagraphEnd, onSection, onSectionEnd |
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.Image logo
public com.lowagie.text.pdf.PdfPTable headerTable
public com.lowagie.text.pdf.PdfPTable nestedHeaderTable
public String campusName
public PurchaseOrderDocument po
public String logoImage
public com.lowagie.text.pdf.BaseFont helv
public String environment
public boolean isPreview
public boolean isRetransmit
Constructor Detail |
---|
public PurapPdf()
Method Detail |
---|
public org.kuali.rice.kns.service.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.
public void deletePdf(String pdfFileLocation, String pdfFilename)
pdfFileLocation
- The location of the pdf file.pdfFilename
- The name of the pdf file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |