Render PDF forms on Android
For form concepts and field types, refer to the introduction to forms guide.
Form support in Nutrient
Nutrient supports all form types listed in the PDF specification.
| Type | Field object | Annotation object |
|---|---|---|
| Check, radio, and push buttons | ButtonFormField | ButtonFormElement |
| List and combo boxes | ChoiceFormField | ChoiceFormElement |
| Text | TextFormField | TextFormElement |
| Signatures | SignatureFormField | SignatureFormElement |
FormField represents a field without its own visual appearance. FormElement represents the visible annotation for one control within a field.
Disabling all form interactions
Call formEditingEnabled(false) to disable all form interactions and modifications:
val builder = PdfActivityConfiguration.Builder(context)builder.formEditingEnabled(false)PdfActivityConfiguration.Builder builder = new PdfActivityConfiguration.Builder(context);builder.formEditingEnabled(false);Licensing
PDF Forms requires a separate license component. Without it, your app can’t view or interact with PDF forms. Contact Sales to add the component, or use a trial license to evaluate it.
Signature fields and elements require one of these license conditions:
- Electronic Signatures or Digital Signatures is included.
- The original license dates from April 2021 or earlier.
Otherwise, Nutrient hides signature elements but displays other form elements. For signature features, refer to the signatures guide.