FormTextFieldNode

data class FormTextFieldNode(val name: String, val width: Dp, val height: Dp, val value: String = "", val multiline: Boolean = false) : PdfNode

An interactive AcroForm text input field.

The renderer always paints a static visual fallback (a bordered, light-gray box with the value inside) so the document reads correctly on every backend. Only the JVM/Desktop backend additionally overlays a real interactive PDTextField widget at the same rectangle — Android's PdfDocument and iOS's Core Graphics PDF context expose no AcroForm API, so on those platforms the field is visual-only.

Constructors

Link copied to clipboard
constructor(name: String, width: Dp, height: Dp, value: String = "", multiline: Boolean = false)

Properties

Link copied to clipboard
val height: Dp

rendered height of the field box.

Link copied to clipboard
val multiline: Boolean = false

whether the field accepts multiple lines of input.

Link copied to clipboard

field name written into the AcroForm; collisions are disambiguated with a -2, -3, … suffix by the backend.

Link copied to clipboard

initial text content of the field.

Link copied to clipboard
val width: Dp

rendered width of the field box.