Skip to content

PDFPageProxy.getViewport method

PDFPageProxy › getViewport

Unofficial

Gets the viewport for the page.

Signature:

getViewport(params: GetViewportParams): PageViewport

Parameters:

ParameterTypeDescription
paramsGetViewportParamsViewport parameters including scale, rotation, offsetX, offsetY, and dontFlip.

Returns: PageViewportThe computed viewport.