public final class PageLayoutEvent
extends java.lang.Object
Page layout model is built in two steps. First, "conversion step", this is when page layout pulls document content and creates object graph. Second, "reflow step", this is when structures are split, merged and arranged into pages.
Depending of the operation which triggered build, page layout model may or may not be further rendered into fixed page format. For example, computing number of pages in the document or updating fields does not require rendering, whereas export to Pdf does.
| Modifier and Type | Field and Description |
|---|---|
static int |
BUILD_FINISHED
Build of the page layout has finished.
|
static int |
BUILD_STARTED
Build of the page layout has started.
|
static int |
CONVERSION_FINISHED
Conversion of document model to page layout has finished.
|
static int |
CONVERSION_STARTED
Conversion of document model to page layout has started.
|
static int |
length |
static int |
NONE
Default value
|
static int |
PART_REFLOW_FINISHED
Reflow of the page has finished.
|
static int |
PART_REFLOW_STARTED
Reflow of the page has started.
|
static int |
PART_RENDERING_FINISHED
Rendering of page has finished.
|
static int |
PART_RENDERING_STARTED
Rendering of page has started.
|
static int |
REFLOW_FINISHED
Reflow of the page layout has finished.
|
static int |
REFLOW_STARTED
Reflow of the page layout has started.
|
static int |
WATCH_DOG
Corresponds to a checkpoint in code which is often visited and which is suitable to abort process.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String pageLayoutEventName) |
static java.lang.String |
getName(int pageLayoutEvent) |
static int[] |
getValues() |
static java.lang.String |
toString(int pageLayoutEvent) |
public static final int NONE
public static final int WATCH_DOG
While inside
IPageLayoutCallback.notify(com.aspose.words.PageLayoutCallbackArgs) throw custom exception to abort process.
You can throw when handling any callback event to abort process.
Note that if process is aborted the page layout model remains in undefined state. If process is aborted upon reflow of a complete page, however, it should be possible to use layout model up to the end of that page.
public static final int BUILD_STARTED
Document.updatePageLayout() is called.public static final int BUILD_FINISHED
Document.updatePageLayout() is called.public static final int CONVERSION_STARTED
public static final int CONVERSION_FINISHED
public static final int REFLOW_STARTED
public static final int REFLOW_FINISHED
public static final int PART_REFLOW_STARTED
PageLayoutCallbackArgs.getPageIndex()public static final int PART_REFLOW_FINISHED
PageLayoutCallbackArgs.getPageIndex()public static final int PART_RENDERING_STARTED
public static final int PART_RENDERING_FINISHED
public static final int length