org.kuali.kfs.module.purap.pdf
Class BulkReceivingPdf

java.lang.Object
  extended by com.lowagie.text.pdf.PdfPageEventHelper
      extended by org.kuali.kfs.module.purap.pdf.PurapPdf
          extended by org.kuali.kfs.module.purap.pdf.BulkReceivingPdf
All Implemented Interfaces:
com.lowagie.text.pdf.PdfPageEvent

public class BulkReceivingPdf
extends PurapPdf

Base class to handle pdf for bulk receiving ticket.


Field Summary
 
Fields inherited from class org.kuali.kfs.module.purap.pdf.PurapPdf
campusName, cb, environment, headerTable, helv, isPreview, isRetransmit, logo, logoImage, nestedHeaderTable, po, tpl
 
Constructor Summary
BulkReceivingPdf()
           
 
Method Summary
 void generatePdf(BulkReceivingDocument blkRecDoc, ByteArrayOutputStream byteStream, String logoImage, String environment)
          Generates the pdf document based on the data in the given BulkReceivingDocument
 BulkReceivingPdf getPageEvents()
          Gets a PageEvents object.
 void onOpenDocument(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.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.
 
Methods inherited from class org.kuali.kfs.module.purap.pdf.PurapPdf
deletePdf, getDateTimeService, getDocument, onCloseDocument, onEndPage, onStartPage
 
Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper
onChapter, onChapterEnd, onGenericTag, onParagraph, onParagraphEnd, onSection, onSectionEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkReceivingPdf

public BulkReceivingPdf()
Method Detail

onOpenDocument

public void onOpenDocument(com.lowagie.text.pdf.PdfWriter writer,
                           com.lowagie.text.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.

Specified by:
onOpenDocument in interface com.lowagie.text.pdf.PdfPageEvent
Overrides:
onOpenDocument in class com.lowagie.text.pdf.PdfPageEventHelper
Parameters:
writer - The PdfWriter for this document.
document - The document.
See Also:
PdfPageEventHelper.onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)

getPageEvents

public BulkReceivingPdf getPageEvents()
Gets a PageEvents object.

Overrides:
getPageEvents in class PurapPdf
Returns:
a new PageEvents object

generatePdf

public void generatePdf(BulkReceivingDocument blkRecDoc,
                        ByteArrayOutputStream byteStream,
                        String logoImage,
                        String environment)
Generates the pdf document based on the data in the given BulkReceivingDocument

Parameters:
blkRecDoc - The BulkReceivingDocument to be used to generate the pdf.
byteStream - The ByteArrayOutputStream where the pdf document will be written to.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.