PdfPageLayout
12 Sep 20251 minute to read
A name object specifying the page layout to be used when the document is opened.
// Create a new PDF document
let document : PdfDocument = new PdfDocument();
// Gets the viewer preferences of the document
let viewerPreferences : PdfViewerPreferences = document.viewerPreferences;
// Sets the page layout
viewerPreferences.pageLayout = PdfPageLayout.TwoColumnLeft;
// Destroy the document
document.destroy();-
OneColumn- Display the pages in one column. -
SinglePage- Default Value. Display one page at a time. -
TwoColumnLeft- Display the pages in two columns, with odd numbered
pages on the left. -
TwoColumnRight- Display the pages in two columns, with odd numbered
pages on the right. -
TwoPageLeft- Display the pages two at a time, with odd-numbered pages on the left. -
TwoPageRight- Display the pages two at a time, with odd-numbered pages on the right.