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

Describes abstract PDF document event of the specified type. More...

Inheritance diagram for iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent:
iText.Commons.Actions.IEvent iText.Kernel.Pdf.Event.PdfDocumentEvent iText.Signatures.Mac.SignatureContainerGenerationEvent iText.Signatures.Mac.SignatureDocumentClosingEvent

Public Member Functions

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...
 

Package Functions

  AbstractPdfDocumentEvent (String type)
  Creates an event of the specified type. More...
 

Package Attributes

String  type
  A type of event. More...
 

Detailed Description

Describes abstract PDF document event of the specified type.

Describes abstract PDF document event of the specified type.

Use iText.Kernel.Pdf.PdfDocument.DispatchEvent(AbstractPdfDocumentEvent) to fire an event and iText.Kernel.Pdf.PdfDocument.AddEventHandler(System.String, AbstractPdfDocumentEventHandler) to register AbstractPdfDocumentEventHandler handler for that type of event.

Constructor & Destructor Documentation

◆ AbstractPdfDocumentEvent()

iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent.AbstractPdfDocumentEvent ( String  type )
inlinepackage

Creates an event of the specified type.

Parameters
type the type of event

Member Function Documentation

◆ GetDocument()

virtual PdfDocument iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent.GetDocument ( )
inlinevirtual

Retrieves the document associated with this event.

Returns

iText.Kernel.Pdf.PdfDocument that triggered this event

◆ GetType()

virtual String iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent.GetType ( )
inlinevirtual

Returns the type of this event.

Returns
type of this event

◆ SetDocument()

virtual iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent.SetDocument ( PdfDocument  document )
inlinevirtual

Sets the document associated with this event.

Parameters
document

iText.Kernel.Pdf.PdfDocument that triggered this event

Returns
this AbstractPdfDocumentEvent instance

Member Data Documentation

◆ type

String iText.Kernel.Pdf.Event.AbstractPdfDocumentEvent.type
package

A type of event.