com.aspose.words
Class PdfPageLayout

java.lang.Object
    extended by com.aspose.words.PdfPageLayout

public class PdfPageLayout 
extends java.lang.Object

Utility class containing constants. Specifies the page layout to be used when the document is opened in a PDF reader.

Example:

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);

Field Summary
static final intSINGLE_PAGE = 0
           Display one page at a time.
static final intONE_COLUMN = 1
           Display the pages in one column.
static final intTWO_COLUMN_LEFT = 2
           Display the pages in two columns, with odd-numbered pages on the left.
static final intTWO_COLUMN_RIGHT = 3
           Display the pages in two columns, with odd-numbered pages on the right.
static final intTWO_PAGE_LEFT = 4
           Display the pages two at a time, with odd-numbered pages on the left.
static final intTWO_PAGE_RIGHT = 5
           Display the pages two at a time, with odd-numbered pages on the right.
 

Field Detail

SINGLE_PAGE = 0

public static final int SINGLE_PAGE
Display one page at a time.

ONE_COLUMN = 1

public static final int ONE_COLUMN
Display the pages in one column.

TWO_COLUMN_LEFT = 2

public static final int TWO_COLUMN_LEFT
Display the pages in two columns, with odd-numbered pages on the left.

TWO_COLUMN_RIGHT = 3

public static final int TWO_COLUMN_RIGHT
Display the pages in two columns, with odd-numbered pages on the right.

TWO_PAGE_LEFT = 4

public static final int TWO_PAGE_LEFT
Display the pages two at a time, with odd-numbered pages on the left.

TWO_PAGE_RIGHT = 5

public static final int TWO_PAGE_RIGHT
Display the pages two at a time, with odd-numbered pages on the right.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.