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>


\end{document}? Can it be modified to form part of a macro, say,\endgreetingthat is placed just before\end{document}? The reason I'm asking this is because one could capture this final content and work with it when that part is reached within the compilation process. If there's no handle on it, one may have very little option but to always extend the last page to larger-than-normal\textheight. – Werner Aug 30 '16 at 00:24\greetingatendas a macro in the preamble. This provides a "handle" into the macro. I'm thinking about the following sample layout: paste – Werner Aug 30 '16 at 00:44\newgeometrymacro of thegeometrypackage can be used to revise the page layout of the current and subsequent pages mid-stream in the document. – Steven B. Segletes Aug 30 '16 at 02:50\enlargethispageas described in the answer at http://tex.stackexchange.com/questions/140924/change-textwidth-and-textheight-in-mid-environment – Steven B. Segletes Aug 30 '16 at 02:57