Skip to content

happypdf / WrappedLine

Interface: WrappedLine

Defined in: src/api/text/wrap.ts:48

Properties

isParagraphEnd

ts
isParagraphEnd: boolean;

Defined in: src/api/text/wrap.ts:59

True when this line ends a paragraph (a hard break or end of text).


runs

ts
runs: TextRun[];

Defined in: src/api/text/wrap.ts:55

The pieces to draw. Left/center/right aligned lines hold a single run; justified lines hold one run per stretched segment.


text

ts
text: string;

Defined in: src/api/text/wrap.ts:50

The line's text, with collapsed leading/trailing whitespace removed.


width

ts
width: number;

Defined in: src/api/text/wrap.ts:57

Natural width of text, ignoring any justification stretch.

MIT Licensed. A fork of pdf-lib.