Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.pdf
Class DefaultPDFCreationListener

java.lang.Object
  extended by org.xhtmlrenderer.pdf.DefaultPDFCreationListener
All Implemented Interfaces:
PDFCreationListener

public class DefaultPDFCreationListener
extends java.lang.Object
implements PDFCreationListener

No-op implementation of a PDFCreationListener. Override methods as needed.


Constructor Summary
DefaultPDFCreationListener()
           
 
Method Summary
 void onClose(ITextRenderer renderer)
          Called immediately before the iText Document instance is closed, e.g.
 void preOpen(ITextRenderer iTextRenderer)
          Called immediately after the iText Document instance is created but before the call to Document.open() is called.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPDFCreationListener

public DefaultPDFCreationListener()
Method Detail

preOpen

public void preOpen(ITextRenderer iTextRenderer)
Called immediately after the iText Document instance is created but before the call to Document.open() is called. At this point you may still modify certain properties of the PDF document header via the PdfWriter; once open() is called, you can't change, e.g. the version. See the iText documentation for what limitations there are at this phase of processing.

Specified by:
preOpen in interface PDFCreationListener
Parameters:
iTextRenderer - the renderer preparing the document

onClose

public void onClose(ITextRenderer renderer)
Called immediately before the iText Document instance is closed, e.g. before Document.close() is called.

Specified by:
onClose in interface PDFCreationListener
Parameters:
renderer - the iTextRenderer preparing the document

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home