PDF Forms

From Drumlin Security Wiki
Jump to navigation Jump to search

Interactive PDF Forms are a facility for collecting information from the user. From a standards perspective an interactive form is a "collection of fields for gathering information interactively from the user".

A PDF document may contain any number of fields appearing on any combination of pages, all of which make up a single, global interactive form spanning the entire document. Arbitrary subsets of these fields can be imported or exported from the document. Interactive forms support the following field types:

  • Button fields represent interactive controls on the screen that the user can manipulate with the mouse. They include pushbuttons, check boxes, and radio buttons
  • Text fields are boxes or spaces in which the user can enter text from the keyboard
  • Choice fields contain several text items, at most one of which may be selected as the field value. They include scrollable list boxes and combo boxes
  • Signature fields represent digital signatures and optional data for authenticating the name of the signer and the document’s contents

The information entered into a PDF form can then be printed with the form itself, or sent to a nominated URL (in a special Forms Data Format, FDF), and potentially saved locally for future reference and/or amendment. Initially such forms were limited in functionality, for example with few or no checks on the validity of entries, but a more advanced type of form structure was introduced in the PDF1.5 release, known as XFA forms, that sought to improve forms handling with calculations, validations and formatting, and results stored in XML format for further use. However, the use of such forms has been largely superseded by the use of non-PDF based offline and online forms processing facilities, notably online web-based forms data handling.

Forms handling is fully supported in the Adobe Acrobat Reader and editing software. In the case of Adobe Acrobat there are facilities to create forms from an existing PDF that may contain fields but which has not be declared as a structured form for processing, or from scanning a form in with auto-detection of potential fields.

Drumlin's Javelin3 for Windows software also supports selected form field types for standard PDFs (including for encrypted PDFs) with the option to save the file including the form data that was entered. The screenshot below illustrates the kinds of fields that can be included (text boxes, tick boxes, option selectors, drop-down and scrollable menu selectors, and date fields):

Javelin3 for Windows forms handling