I suspect it is caused by the combination of the books (p) margins and your margin settings in the VIEWER.
Until the </body> tag has been process, there needs to be space on the 'page'. That is probably your overflow.
FWIW I now avoid non-zero margin-bottom when possible and use the top one of the next P, for most spacing
|