public class PdfDocumentEvent extends Event
Modifier and Type | Field and Description |
---|---|
static String |
END_PAGE
Dispatched before page is closed and written.
|
static String |
INSERT_PAGE
Dispatched after page is inserted/added into document.
|
protected PdfPage |
page
The PdfPage associated with this event.
|
static String |
REMOVE_PAGE
Dispatched after page is removed from 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–2017 iText Group NV. All rights reserved.