iText 9.8.0 API
iText.Kernel.Pdf.Event.PdfDocumentEvent Class Reference

Event dispatched by PdfDocument. More...

Inheritance diagram for iText.Kernel.Pdf.Event.PdfDocumentEvent:
iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent iText.Commons.Actions.IEvent

Public Member Functions

  PdfDocumentEvent (String type)
  Creates a PdfDocumentEvent. More...
 
  PdfDocumentEvent (String type, PdfPage page)
  Creates a PdfDocumentEvent. More...
 
virtual PdfPage  GetPage ()
  Returns the PdfPage associated with this event. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent
virtual String  GetType ()
  Returns the type of this event. More...
 
virtual PdfDocument  GetDocument ()
  Retrieves the document associated with this event. More...
 
virtual iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent  SetDocument (PdfDocument document)
  Sets the document associated with this event. More...
 

Static Public Attributes

const String  START_PAGE = "StartPdfPage"
  Dispatched after page is created. More...
 
const String  INSERT_PAGE = "InsertPdfPage"
  Dispatched after page is inserted/added into a document. More...
 
const String  REMOVE_PAGE = "RemovePdfPage"
  Dispatched after page is removed from a document. More...
 
const String  END_PAGE = "EndPdfPage"
  Dispatched before page is flushed to a document. More...
 
const String  START_WRITER_CLOSING = "StartWriterClosing"
  Dispatched before writer is closed. More...
 
const String  START_DOCUMENT_CLOSING = "StartDocumentClosing"
  Dispatched after writer is flushed to a document. More...
 

Package Attributes

PdfPage  page
  The PdfPage associated with this event. More...
 
- Package Attributes inherited from iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent
String  type
  A type of event. More...
 

Additional Inherited Members

- Package Functions inherited from iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent
  AbstractPdfDocumentEvent (String type)
  Creates an event of the specified type. More...
 

Detailed Description

Event dispatched by PdfDocument.

Constructor & Destructor Documentation

◆ PdfDocumentEvent() [1/2]

iText.Kernel.Pdf.Event.PdfDocumentEvent.PdfDocumentEvent ( String  type )
inline

Creates a PdfDocumentEvent.

Parameters
type type of the event that fired this event

◆ PdfDocumentEvent() [2/2]

iText.Kernel.Pdf.Event.PdfDocumentEvent.PdfDocumentEvent ( String  type,
PdfPage  page 
)
inline

Creates a PdfDocumentEvent.

Parameters
type type of the event that fired this event
page page that fired this event

Member Function Documentation

◆ GetPage()

virtual PdfPage iText.Kernel.Pdf.Event.PdfDocumentEvent.GetPage ( )
inlinevirtual

Returns the PdfPage associated with this event.

Returns the PdfPage associated with this event. Warning: this can be null.

Returns
the PdfPage associated with this event

Member Data Documentation

◆ END_PAGE

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.END_PAGE = "EndPdfPage"
static

Dispatched before page is flushed to a document.

Dispatched before page is flushed to a document. This event isn't necessarily dispatched when a successive page has been created. Keep it in mind when using with highlevel iText API.

◆ INSERT_PAGE

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.INSERT_PAGE = "InsertPdfPage"
static

Dispatched after page is inserted/added into a document.

◆ page

PdfPage iText.Kernel.Pdf.Event.PdfDocumentEvent.page
package

The PdfPage associated with this event.

◆ REMOVE_PAGE

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.REMOVE_PAGE = "RemovePdfPage"
static

Dispatched after page is removed from a document.

◆ START_DOCUMENT_CLOSING

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.START_DOCUMENT_CLOSING = "StartDocumentClosing"
static

Dispatched after writer is flushed to a document.

◆ START_PAGE

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.START_PAGE = "StartPdfPage"
static

Dispatched after page is created.

◆ START_WRITER_CLOSING

const String iText.Kernel.Pdf.Event.PdfDocumentEvent.START_WRITER_CLOSING = "StartWriterClosing"
static

Dispatched before writer is closed.