iText 9.8.0 API
iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler Class Referenceabstract

Base class for PDF document events handling based on the event type. More...

Inheritance diagram for iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler:
iText.Commons.Actions.IEventHandler

Public Member Functions

virtual iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler  AddType (String type)
  Adds new event type to handle by this AbstractPdfDocumentEventHandler instance. More...
 
virtual void  OnEvent (IEvent @event)
  Handles the event. More...
 

Package Functions

  AbstractPdfDocumentEventHandler ()
  Creates new AbstractPdfDocumentEventHandler instance. More...
 
abstract void  OnAcceptedEvent (AbstractPdfDocumentEvent @event)
  Handles the accepted event. More...
 

Detailed Description

Base class for PDF document events handling based on the event type.

Base class for PDF document events handling based on the event type.

Handles AbstractPdfDocumentEvent event fired by iText.Kernel.Pdf.PdfDocument.DispatchEvent(AbstractPdfDocumentEvent). Use iText.Kernel.Pdf.PdfDocument.AddEventHandler(System.String, AbstractPdfDocumentEventHandler) to register this handler for specific type of event.

Constructor & Destructor Documentation

◆ AbstractPdfDocumentEventHandler()

iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler.AbstractPdfDocumentEventHandler ( )
inlinepackage

Creates new AbstractPdfDocumentEventHandler instance.

Creates new AbstractPdfDocumentEventHandler instance.

By default, this instance handles all types of the AbstractPdfDocumentEvent events. For specific types handling, use AddType(System.String) method.

Member Function Documentation

◆ AddType()

virtual iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler.AddType ( String  type )
inlinevirtual

Adds new event type to handle by this AbstractPdfDocumentEventHandler instance.

Parameters
type the AbstractPdfDocumentEvent type to handle
Returns
this AbstractPdfDocumentEventHandler instance

◆ OnAcceptedEvent()

abstract void iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler.OnAcceptedEvent ( AbstractPdfDocumentEvent @  event )
packagepure virtual

Handles the accepted event.

Parameters
event

AbstractPdfDocumentEvent to handle

◆ OnEvent()

virtual void iText.Kernel.Pdf.Event.AbstractPdfDocumentEventHandler.OnEvent ( IEvent @  event )
inlinevirtual

Handles the event.

Parameters
event to handle

Implements iText.Commons.Actions.IEventHandler.