fix issuse with height field on PDF output