View PDF Forms in Our JavaScript PDF Viewer

PSPDFKit supports most form types defined by the PDF specification. We have to differentiate between field objects and annotation objects.

Launch Demo

Field objects have no visual representation of their own and are represented by FormField, while annotation objects are visual representations of a single control inside a form field and are represented by WidgetAnnotation.

To render a WidgetAnnotation, the associated FormField will be accessed via the WidgetAnnotation#formFieldName property. Based on the type of this FormField, different form controls are rendered.

We currently render generic elements for every form field type. Rendering the custom appearance stream for form fields is planned for a future release.

Controlling PDF Form Editing

When this permission is disabled, users aren’t allowed to fill out forms. This permission is granted by default, but it can be disabled by setting the Configuration.disableForms configuration value to true. Disabling the default permission doesn’t affect the original file; instead, it affects how the final user can interact with the document.


PDF Forms is a separate component in your PSPDFKit license. Without this feature included in your license, your app won’t be able to view or interact with PDF forms. Please contact our sales team to add this feature to your license, or use a trial license if you want to try out this feature.

Signature form fields and signature form elements require that your license includes either Electronic Signatures or Digital Signatures, or that your license was originally obtained in April 2021 or earlier. If none of these requirements are met, then signature elements will be omitted, and other form elements will be shown.