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.

Not all forms are PDF forms

53 sec read

We had an inquiry today about converting PDF forms to HTML5 forms in some documents. When we investigated, this was not possible. This article explains what the issue was and why forms are not necessarily PDF forms.

The PDF file spec allows you to add Interactive Form elements to a PDF file as Annotations (on a page by page basis) or to the Document as FDF element or the new XFA style XML format. These are PDF forms (which have PDF form elements). Our software then converts the PDF forms to HTML5 form elements. You can double-check by seeing if the PDF contains any Annots of Forms elements.

It is also possible to create PDF versions of pages (for example Excel spreadsheets) which look like forms. They contain empty or filled boxes. But they are flat PDF files – they contain no interactive PDF form elements. So they are ‘forms’ but not PDF forms which you can interactive with or convert to HTML5.

The PDF file format is very powerful and does a brilliant job of showing content – sometimes too good as our brains imagine details are in the PDF (such as text structure or forms) which are not actually there.

This post is part of our “Understanding the PDF File Format” series. In each article, we discuss a PDF feature, bug, gotcha or tip. If you wish to learn more about PDF, we have 13 years worth of PDF knowledge and tips, so click here to visit our series index!

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

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.

Enabling SVG Gzip Compression on Apache and NGINX

Gzip compression is a widely supported method of reducing the size of the content sent from a web server in order to improve the...
Leon Atherton
47 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2019. All rights reserved.