|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PDFCreationListener
Callback listener for PDF creation. To use this, call ITextRenderer.setListener(PDFCreationListener)
.
Note that with a handle on the ITextRenderer instance (provided in the callback arguments) you can access
the PdfWriter
instance being used to create the document, using
ITextRenderer.getOutputDevice()
, then calling ITextOutputDevice.getWriter()
.
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. |
Method Detail |
---|
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.
iTextRenderer
- the renderer preparing the documentvoid onClose(ITextRenderer renderer)
Document.close()
is called.
renderer
- the iTextRenderer preparing the document
|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |