public class PdfDocumentEvent extends Event
Modifier and Type | Field and Description |
---|---|
static String |
END_PAGE
Dispatched before page is flushed to a document.
|
static String |
INSERT_PAGE
Dispatched after page is inserted/added into a document.
|
protected PdfPage |
page
The PdfPage associated with this event.
|
static String |
REMOVE_PAGE
Dispatched after page is removed from a document.
|
static String |
START_PAGE
Dispatched after page is created.
|
Constructor and Description |
---|
PdfDocumentEvent(String type, PdfDocument document)
Creates a PdfDocumentEvent.
|
PdfDocumentEvent(String type, PdfPage page)
Creates a PdfDocumentEvent.
|
Modifier and Type | Method and Description |
---|---|
PdfDocument |
getDocument()
Returns the PdfDocument associated with this event.
|
PdfPage |
getPage()
Returns the PdfPage associated with this event.
|
public static final String START_PAGE
public static final String INSERT_PAGE
public static final String REMOVE_PAGE
public static final String END_PAGE
protected PdfPage page
public PdfDocumentEvent(String type, PdfDocument document)
type
- type of the event that fired this event
document
- document that fired this event
public PdfDocument getDocument()
public PdfPage getPage()
Copyright © 1998–2023 iText Group NV. All rights reserved.