modern-pdf-lib / generateTextAppearance
Function: generateTextAppearance()
generateTextAppearance(
options):PdfStream
Defined in: src/form/fieldAppearance.ts:98
Generate the appearance stream for a text field.
The stream renders the text value within the widget rectangle, using Tf/Td/Tj operators. Handles single-line and multiline, alignment (quadding), and auto font-size calculation.