public final class PageSet
extends java.lang.Object
To learn more, visit the Programming with Documents documentation article.
| Constructor and Description |
|---|
PageSet(int... pages)
Creates a page set based on exact page indices.
|
PageSet(int page)
Creates an one-page set based on exact page index.
|
PageSet(PageRange... ranges)
Creates a page set based on ranges.
|
| Modifier and Type | Method and Description |
|---|---|
static PageSet |
getAll()
Gets a set with all the pages of the document in their original order.
|
static PageSet |
getEven()
Gets a set with all the even pages of the document in their original order.
|
static PageSet |
getOdd()
Gets a set with all the odd pages of the document in their original order.
|
public PageSet(int page)
page - Zero-based index of the page.public PageSet(int... pages)
pages - Zero-based indices of pages.public PageSet(PageRange... ranges)
ranges - Array of page ranges.public static PageSet getAll()
public static PageSet getEven()
public static PageSet getOdd()