Skip to content

IPageReader

@scaryterry/pdfium


Defined in: src/core/interfaces.ts:96

Interface for interacting with a PDF page.

  • Disposable

readonly height: number

Defined in: src/core/interfaces.ts:103


readonly index: number

Defined in: src/core/interfaces.ts:98

The zero-based index of this page.


rotation: PageRotation

Defined in: src/core/interfaces.ts:106

Page rotation.


readonly size: PageSize

Defined in: src/core/interfaces.ts:101

Page dimensions.


readonly width: number

Defined in: src/core/interfaces.ts:102

[dispose](): void

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts:36

void

Disposable.[dispose]


findText(query, flags?): IterableIterator<TextSearchResult>

Defined in: src/core/interfaces.ts:115

Find text occurrences.

ParameterType
querystring
flags?TextSearchFlags

IterableIterator<TextSearchResult>


getAnnotations(): Annotation[]

Defined in: src/core/interfaces.ts:118

Get annotations.

Annotation[]


getObjects(): PDFiumPageObject[]

Defined in: src/core/interfaces.ts:127

Get page objects.

PDFiumPageObject[]


getPageBox(boxType): PageBox | undefined

Defined in: src/core/interfaces.ts:109

Get specific page box.

ParameterType
boxTypePageBoxType

PageBox | undefined


getText(): string

Defined in: src/core/interfaces.ts:112

Get text content.

string


objects(): IterableIterator<PDFiumPageObject>

Defined in: src/core/interfaces.ts:128

IterableIterator<PDFiumPageObject>


render(options?): RenderResult

Defined in: src/core/interfaces.ts:121

Render the page.

ParameterType
options?RenderOptions

RenderResult


startProgressiveRender(options?): IProgressiveRenderContext

Defined in: src/core/interfaces.ts:124

Start progressive render.

ParameterType
options?RenderOptions

IProgressiveRenderContext