PDF of a very long form is not outputed correctly