How can I help you?
PdfPage
6 Feb 20261 minute to read
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
Get annotations PdfAnnotationCollection
Gets the collection of the page’s annotations (Read only).
Get cropBox number[]
Gets the bounds that define the area intended for display or printing in the PDF viewer application (Read only).
Get graphics PdfGraphics
Gets the graphics of the page (Read only).
Get mediaBox number[]
Gets the size that specify the width and height of the page (Read only).
Get orientation PdfPageOrientation
Gets the orientation of the page (Read only).
Get rotation PdfRotationAngle
Gets the rotation angle of the page (Read only).
Set rotation void
Sets the rotation angle of the PDF page
| Parameter | Type | Description |
|---|---|---|
| value | PdfRotationAngle |
Rotation angle. |
Get size Size
Gets the size of the page (Read only).
Get tabOrder PdfFormFieldsTabOrder
Gets the tab order of a PDF form field.
Set tabOrder void
Sets the tab order of a PDF form field.
| Parameter | Type | Description |
|---|---|---|
| value | PdfFormFieldsTabOrder |
Tab order. |