Web SDKv1.0.0

FormsApi.type()

The kind of form the document carries, as a FormType. Only AcroForm fields are interactive. Needs no feature.
methodReadingsince 1.0.0

Signature

type(): Promise<FormType>

Returns

Promise<FormType> 'none', 'acroform', 'xfa' or 'xfa-foreground'.

Throws

  • DOCUMENT_CLOSED — the document has been closed.

Example

TypeScript
if ((await doc.forms.type()) === 'xfa') showNotice('Dynamic XFA forms are not interactive');

More in FormsApi