Skip to content

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

ParameterType
linesEncodedTextLine[]
optionsDrawLinesOfTextOptions

Returns

PDFOperator[]

MIT Licensed. A fork of pdf-lib.