Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

ReflowBlock

type ReflowBlock = ReflowKind & object;

Defined in: packages/sdk/src/reflow.ts:49

One block of the reading view.

readonly alt?: string;

A crop’s alternate text (/Alt), when the file gives one.

readonly bbox: readonly [number, number, number, number] | null;

Its box on that page in page space, [x, y, width, height] in points from the top left: where “back to the page” goes, and a crop’s clip. null for a crop that paints nothing reader mode could find.

readonly page: number;

The page it is on (0-based; a crop’s first page).

readonly text: string;

The text; empty for a figure, formula or table, which are shown as crops of their page, but for an approximate table or page image, which keeps the text read there for searching.

0.2.0