Interface PDFPageProxy

Index

Methods

Methods

public destroy()

Destroyes resources allocated by the page.

public getAnnotations(): PDFPromise

A promise that is resolved with an array of the annotation objects.

Returns

PDFPromise

public getTextContext(): PDFPromise

A promise that is resolved with the string that is the text content frm the page.

Returns

PDFPromise

public getViewport(scale: number, rotate?: number): PDFPageViewport

Parameters

  • scale: number

    The desired scale of the viewport.

  • rotate?: number optional

    Degrees to rotate the viewport. If omitted this defaults to the page rotation.

Returns

PDFPageViewport

public pageNumber(): number

Page number of the page. First page is 1.

Returns

number

public ref(): PDFRef

The reference that points to this page.

Returns

PDFRef

public render(params: PDFRenderParams): PDFRenderTask

Begins the process of rendering a page to the desired context.

Parameters

Returns

PDFRenderTask

An extended promise that is resolved when the page finishes rendering.

public rotate(): number

The number of degrees the page is rotated clockwise.

Returns

number

public view(): Array<number>

Returns

Array<number>

An array of the visible portion of the PDF page in the user space units - [x1, y1, x2, y2].