Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

What are PDF Forms?

57 sec read

How to view pdf metadata using Java (PDF logo)

Have you ever seen a PDF file with interactive buttons, fillable fields, checkboxes, text, or radio buttons? These interactive elements are PDF forms….

Example PDF form

You can see some more example forms on our FormVu sales page.

This is one of my favourite features on the PDF file format because it makes the documents interactive and much more useful. This makes them very useful for collecting data, placing orders and creating invoices. People have even written games using them! This data can be saved as part of the document or submitted to a server.

There are 2 types of PDF Form

There are currently 2 types of PDF form based on 2 different technologies – AcroForms and XFA. They are very different technically and most PDF libraries do not support XFA.

1. The AcroForms dates back to the beginning of time. It stores data in standard COS object format.

2. An alternative XML based format called XFA (XML Forms Architecture). There is also a legacy mode in which both AcroForms and XFA versions are present in a Document.

AcroForms was the original format and is well supported. XFA is the newer format which has now been deprecated and removed from the PDF file format. It is not as well supported as AcroForms. You need to use Adobe LiveCycle to process them (Itext and our FormVu converter can also handle them).

Although each has its own specification, they both have things like borders, colors etc as you would expect. They also have actions defined within each. PDF forms can also include JavaScript to do calculations – for example adding 2 values together and filling in a total field.



FormVu allows you to

Use Interactive PDF Forms in the Web Browser
Integrate fillable PDF Forms into Web Apps
Parse PDF forms as HTML5
Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.