/ PDF / PdfPage
Search results

PdfPage API in JavaScript PDF API control

Represents a page loaded from the PDF document.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access first page
let page: PdfPage = document.getPage(0);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Properties

annotations PdfAnnotationCollection

Gets the collection of the page’s annotations (Read only).

cropBox number[]

Gets the bounds that define the area intended for display or printing in the PDF viewer application (Read only).

graphics PdfGraphics

Gets the graphics of the page (Read only).

mediaBox number[]

Gets the size that specify the width and height of the page (Read only).

orientation PdfPageOrientation

Gets the orientation of the page (Read only).

rotation PdfRotationAngle

Gets the rotation angle of the page (Read only).

size number[]

Gets the size of the page (Read only).

tabOrder PdfFormFieldsTabOrder

Gets the tab order of a PDF form field.