[#57] Prevent trailing blank pages in PDFs

Remove bottom margin/padding from the final element of the document to
prevent a trailing blank page being generated.
Merge pull request #76 from andylolz/57-blank-pages

[#57] Prevent trailing blank pages in PDFs