Table of Contents

Class PdfDocumentEvent

Namespace
iText.Kernel.Events
Assembly
itext.kernel.dll

Event dispatched by PdfDocument.

public class PdfDocumentEvent : Event
Inheritance
PdfDocumentEvent
Inherited Members

Constructors

PdfDocumentEvent(string, PdfDocument)

Creates a PdfDocumentEvent.

public PdfDocumentEvent(string type, PdfDocument document)

Parameters

type string

type of the event that fired this event

document PdfDocument

document that fired this event

PdfDocumentEvent(string, PdfPage)

Creates a PdfDocumentEvent.

public PdfDocumentEvent(string type, PdfPage page)

Parameters

type string

type of the event that fired this event

page PdfPage

page that fired this event

Fields

END_PAGE

Dispatched before page is flushed to a document.

public const string END_PAGE = "EndPdfPage"

Field Value

string

Remarks

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

Dispatched after page is inserted/added into a document.

public const string INSERT_PAGE = "InsertPdfPage"

Field Value

string

REMOVE_PAGE

Dispatched after page is removed from a document.

public const string REMOVE_PAGE = "RemovePdfPage"

Field Value

string

START_PAGE

Dispatched after page is created.

public const string START_PAGE = "StartPdfPage"

Field Value

string

page

The PdfPage associated with this event.

protected PdfPage page

Field Value

PdfPage

Methods

GetDocument()

Returns the PdfDocument associated with this event.

public virtual PdfDocument GetDocument()

Returns

PdfDocument

the PdfDocument associated with this event

GetPage()

Returns the PdfPage associated with this event.

public virtual PdfPage GetPage()

Returns

PdfPage

the PdfPage associated with this event

Remarks

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