public interface PDFCreationListener
ITextRenderer#setListener(PDFCreationListener).
Note that with a handle on the ITextRenderer instance (provided in the callback arguments) you can access
the com.itextpdf.text.pdf.PdfWriter instance being used to create the document, using
ITextRenderer#getOutputDevice(), then calling ITextOutputDevice#getWriter().| Modifier and Type | Method and Description |
|---|---|
void |
onClose(PdfBoxRenderer renderer)
Called immediately before the iText Document instance is closed, e.g.
|
void |
preOpen(PdfBoxRenderer iTextRenderer)
Called immediately after the iText Document instance is created but before the call to
com.itextpdf.text.Document#open() is called. |
void |
preWrite(PdfBoxRenderer iTextRenderer,
int pageCount)
Called immediately before the pages of the PDF file are about to be written out.
|
void preOpen(PdfBoxRenderer iTextRenderer)
com.itextpdf.text.Document#open() is called. At this point you may still modify certain
properties of the PDF document header via the com.itextpdf.text.pdf.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.iTextRenderer - the renderer preparing the documentvoid preWrite(PdfBoxRenderer iTextRenderer, int pageCount)
ITextOutputDevice that is returned by ITextRenderer#getOutputDevice().iTextRenderer - the renderer preparing the documentpageCount - the number of pages that will be written to the PDF documentvoid onClose(PdfBoxRenderer renderer)
com.itextpdf.text.Document#close() is called.renderer - the iTextRenderer preparing the documentCopyright © 2018. All rights reserved.