PdfPageOrientation
12 Sep 20251 minute to read
Public enum to define the PDF page orientation.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access first page
let page: PdfPage = document.getPage(0);
// Get the page orientation
let orientation: PdfPageOrientation = page.orientation;
// Destroy the document
document.destroy();-
landscape- Specifies the type oflandscape. -
portrait- Specifies the type ofportrait.