Adding form element to output

Poppler takes care of almost everything, I simply added the form tags at the end of every page.
Thanks for your explanation. I'll try to solve this with CSS tricks.
Then I think your patch would be OK, until we have a better solution.