Package org.xhtmlrenderer.pdf
Class DefaultPDFCreationListener
java.lang.Object
org.xhtmlrenderer.pdf.DefaultPDFCreationListener
- All Implemented Interfaces:
PDFCreationListener
No-op implementation of a
PDFCreationListener
. Override methods as needed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 toDocument.open()
is called.
-
Constructor Details
-
DefaultPDFCreationListener
public DefaultPDFCreationListener()
-
-
Method Details
-
preOpen
Called immediately after the iText Document instance is created but before the call toDocument.open()
is called. At this point you may still modify certain properties of the PDF document header via thePdfWriter
; 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 interfacePDFCreationListener
- Parameters:
iTextRenderer
- the renderer preparing the document
-
onClose
Called immediately before the iText Document instance is closed, e.g. beforeDocument.close()
is called.- Specified by:
onClose
in interfacePDFCreationListener
- Parameters:
renderer
- the iTextRenderer preparing the document
-