happypdf / TextAlign
Type Alias: TextAlign
ts
type TextAlign = "left" | "center" | "right" | "justify";Defined in: src/api/text/wrap.ts:11
How a wrapped paragraph is aligned within its maxWidth.
justify stretches every line except the last one of a paragraph to fill the full width, distributing the slack across that line's break opportunities. The last line is drawn left aligned, matching the convention of CSS text-align: justify.