#28205

If the HTML document has only the form, pd4ml.fitPageVertically() should help.

If the form is a section of a bigger document, there are possible workarounds with proprietary tag.