Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

TextRange

TextRange = object

Where a piece of text sits in a rendering, in Unicode scalar values (chars), start inclusive and end exclusive. Code points, not bytes or UTF-16 units, so Python slices a rendering with them as they are; [Rendered::slice] does it in Rust.

end: number

One past the last character.


start: number

The first character.