|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.pdf.DefaultPDFCreationListener
public class DefaultPDFCreationListener
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. |
void |
preWrite(ITextRenderer iTextRenderer,
int pageCount)
Called immediately before the pages of the PDF file are about to be written out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPDFCreationListener()
| Method Detail |
|---|
public void preOpen(ITextRenderer iTextRenderer)
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.
preOpen in interface PDFCreationListeneriTextRenderer - the renderer preparing the document
public void preWrite(ITextRenderer iTextRenderer,
int pageCount)
ITextOutputDevice that is returned by ITextRenderer.getOutputDevice().
preWrite in interface PDFCreationListeneriTextRenderer - the renderer preparing the documentpageCount - the number of pages that will be written to the PDF documentpublic void onClose(ITextRenderer renderer)
com.itextpdf.text.Document#close() is called.
onClose in interface PDFCreationListenerrenderer - the iTextRenderer preparing the document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||