The only way to do this is to measure the form and find out the actual position and size of each box to be filled. You then need to write code to print the relevant values at the specific positions on the page.
This tutorial[
^] should help you work out what is needed.