Adding form element to output

Poppler takes care of almost everything, I simply added the form tags at the end of every page.
Using a div here is bit unorthodox, I admit. Here's my reasoning : these would usually be either a checkbox or a radio button, in typical HTML. But the way these are shown in the PDF document, it simply adds an image on top of some text (like "a)" ) and as such, it is quite different, visually, from typical checkboxes. A <button> would represent the same problem.

And so I resorted to copy the behavior shown in the PDF document, adding the same type of content (here a textual "X" which should become a small check icon) over the text.

I can send you example of what I just described if you want.