Adding form element to output

Poppler takes care of almost everything, I simply added the form tags at the end of every page.
Where does the constant 3 come from?