public abstract class AbstractPdfDocumentEvent extends Object implements com.itextpdf.commons.actions.IEvent
Use PdfDocument.dispatchEvent(AbstractPdfDocumentEvent) to fire an event
and PdfDocument.addEventHandler(String, AbstractPdfDocumentEventHandler)
to register AbstractPdfDocumentEventHandler handler for that type of event.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPdfDocumentEvent(String type)
Creates an event of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
PdfDocument |
getDocument()
Retrieves the document associated with this event.
|
String |
getType()
Returns the type of this event.
|
AbstractPdfDocumentEvent |
setDocument(PdfDocument document)
Sets the document associated with this event.
|
protected String type
protected AbstractPdfDocumentEvent(String type)
type - the type of eventpublic String getType()
public PdfDocument getDocument()
PdfDocument that triggered this eventpublic AbstractPdfDocumentEvent setDocument(PdfDocument document)
document - PdfDocument that triggered this eventAbstractPdfDocumentEvent instanceCopyright © 1998–2025 Apryse Group NV. All rights reserved.