Skip to content

PDFPageProxy

Unofficial

Proxy for a single PDF page.

Import:

import type { PDFPageProxy } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PDFPageProxy

Properties

PropertyTypeDescription
pageNumbernumberPage number (1-based).
refnull | objectReference object for the page, if available.
rotatenumberPage rotation angle in degrees.
userUnitnumberUser unit size.
viewnumber[]The page view box coordinates.

Methods

MethodReturnsDescription
cleanup(resetStats?)booleanCleans up resources held by the page.
getAnnotations(params?)Promise<unknown[]>Gets the annotations for the page.
getOperatorList()Promise<unknown>Gets the operator list for the page.
getTextContent(params?)Promise<TextContent>Gets the text content of the page.
getViewport(params)PageViewportGets the viewport for the page.
render(params)RenderTaskRenders the page to a canvas context.
streamTextContent(params?)ReadableStreamStreams the text content of the page.

Links to this page: