Producing fillable forms
PDF files can be interactive. Users can fill out forms before printing the entire document. With LaTeX, you can produce such forms. In this recipe, we will create a form.
How to do it...
Once again, we will use the hyperref package. We aim to produce small paper sheets for a survey as a fillable PDF form. A yellow background shall distinguish it from other papers. The format will be landscape. Let’s begin the process:
- Start a new document with A6 paper in landscape format and a small inter-paragraph space instead of paragraph indentation, as follows:
\documentclass[a6paper,landscape, parskip=half]{scrartcl}
- Set a small margin to save space on the screen:
\usepackage[margin=0.4cm]{geometry}
- Set the background color as 30% yellow:
\usepackage{xcolor} \pagecolor{yellow!30}
- Choose an empty page style, so we won’t get page numbers:
\pagestyle{empty}
- Load the hyperref package:
\usepackage{hyperref}
- Start the...