If you have text on multiple rows, it does not calculate height of page correctly.
pdf.pdf
"Wooord5" is too low, "wooord6" is almost invisible, 7 - 8 is missing, other text is correctly on other page.
Example:
woooord1
woooord2
woooord3
woooord4
woooord5
woooord6
woooord7
woooord8
Other text