happypdf / drawAlignedLinesOfText
Function: drawAlignedLinesOfText()
ts
function drawAlignedLinesOfText(lines, options): PDFOperator[];Defined in: src/api/operations.ts:130
Draws pre-positioned lines of text. Each line is placed one lineHeight below the previous one, and each run within a line is offset horizontally by its own x, which is what lets a line be centered, right aligned, or justified.
Parameters
| Parameter | Type |
|---|---|
lines | EncodedTextLine[] |
options | DrawLinesOfTextOptions |