public class DefaultPDFCreationListener extends Object implements PDFCreationListener
PDFCreationListener. Override methods as needed.| 构造器和说明 |
|---|
DefaultPDFCreationListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClose(ITextRenderer renderer)
Called immediately before the iText Document instance is closed, e.g. before
Document.close() is called. |
void |
preOpen(ITextRenderer iTextRenderer)
Called immediately after the iText Document instance is created but before the call to
Document.open() is called. |
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 在接口中 PDFCreationListeneriTextRenderer - the renderer preparing the documentpublic void onClose(ITextRenderer renderer)
Document.close() is called.onClose 在接口中 PDFCreationListenerrenderer - the iTextRenderer preparing the documentCopyright © 2019. All Rights Reserved.