Search results

PageInfo API in JavaScript PDF Viewer API control

Represents the information of a specific page within the viewer. This class provides essential information such as the page index, dimensions, and rotation.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 viewer.appendTo("#pdfViewer");
 let pageInfo = viewer.getPageInfo(pageIndex);
 console.log(pageInfo);

Properties

height

number

The height of the page in points.

pageIndex

number

The 0-based index of the page.

rotation

number

The rotation angle of the page in degrees.

width

number

The width of the page in points.