public class PdfPageLayout
extends java.lang.Object
Examples:
Shows how to display pages when opened in a PDF reader.
Document doc = new Document(getMyDir() + "Big document.docx");
// Display the pages two at a time, with odd-numbered pages on the left.
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setPageLayout(PdfPageLayout.TWO_PAGE_LEFT);
doc.save(getArtifactsDir() + "PdfSaveOptions.PageLayout.pdf", saveOptions);
| Modifier and Type | Field and Description |
|---|---|
static int |
length |
static int |
ONE_COLUMN
Display the pages in one column.
|
static int |
SINGLE_PAGE
Display one page at a time.
|
static int |
TWO_COLUMN_LEFT
Display the pages in two columns, with odd-numbered pages on the left.
|
static int |
TWO_COLUMN_RIGHT
Display the pages in two columns, with odd-numbered pages on the right.
|
static int |
TWO_PAGE_LEFT
Display the pages two at a time, with odd-numbered pages on the left.
|
static int |
TWO_PAGE_RIGHT
Display the pages two at a time, with odd-numbered pages on the right.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String pdfPageLayoutName) |
static java.lang.String |
getName(int pdfPageLayout) |
static int[] |
getValues() |
static java.lang.String |
toString(int pdfPageLayout) |
public static int SINGLE_PAGE
public static int ONE_COLUMN
public static int TWO_COLUMN_LEFT
public static int TWO_COLUMN_RIGHT
public static int TWO_PAGE_LEFT
public static int TWO_PAGE_RIGHT
public static int length