[Tex/LaTex] Write into bottom margin rather than break page

geometrymarginspage-breaking

I have a document that is automatically generated, and I would like the last bit that always gets put onto the end to simply ignore the bottom margin.

In other words, I want my file to compile normally, unless this last bit would cross a page barrier. If that is the case, I would like to effectively extend the margin of the last page so as to avoid that last page break.

One possible solution would be to simply change the bottom margin of the last page only. But I can not figure out how to do that.

EDIT: There is nothing in the bottom margin. Also, there are multiple versions of this process, and in each version the last bit is a little different. It is usually something like:

Sincerely,

<name>

<company position>

Best Answer

Here's an example of \enlargethispage{}, as employed at Change \textwidth and \textheight in mid-environment. Note that I couple it with \thispagestyle{empty}, or else the extension overwrites the page number.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[2-17]\enlargethispage{1in}\thispagestyle{empty}
\lipsum[18]
\end{document}

enter image description here