PdfAcroForm

data class PdfAcroForm(val fieldCount: Int, val needAppearances: Boolean, val signatureFlags: Int, val defaultAppearance: String?, val defaultQuadding: Int, val raw: PdfDictionary)

Top-level interactive form metadata — catalog /AcroForm (ISO 32000-1 §12.7.2).

KitePDF v0.0.x exposes the catalog-level view only: how many fields, what the default appearance and quadding are, and the document-level signing flags. The full field tree (the per-field /Fields entries with their parent/kid relationships and widget links) is a deliberate follow-up; we want to land form filling and form appearance generation as a coherent feature rather than dribble fields in piece by piece.

Constructors

Link copied to clipboard
constructor(fieldCount: Int, needAppearances: Boolean, signatureFlags: Int, defaultAppearance: String?, defaultQuadding: Int, raw: PdfDictionary)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

True if /SigFlags & 2 — modifications must be append-only (the signed-bytes invariant). Save-side enforcement is on a future round's docket.

Link copied to clipboard

Default field-text appearance string (the same syntax as a content stream).

Link copied to clipboard

Default quadding for variable text: 0 = left, 1 = centre, 2 = right.

Link copied to clipboard

Number of root fields (top of the field tree).

Link copied to clipboard

True if /SigFlags & 1 — at least one signature field exists.

Link copied to clipboard

True if the document carries an XFA payload (PDF 1.5 dynamic forms, deprecated in PDF 2.0). Most modern viewers ignore XFA; we expose the flag for compatibility scanning but don't parse the payload.

Link copied to clipboard

If true, the conforming reader must regenerate field appearances on open — the document's /AP streams are out of date. PDF readers that don't regenerate (like our current renderer) should not display stale appearance streams when this is true.

Link copied to clipboard

Raw dict for callers needing fields we didn't model (DR, CO, XFA, …).

Link copied to clipboard

Document-level signing flags. Bit 1 = SignaturesExist; bit 2 = AppendOnly.