[Tex/LaTex] Converting document from letter to a4 paper size

paper-size

A document is typed with default letter size. I want to take printout on a4 size. Everything gets disturbed on printed pages. I tried manually changing margins, font-size, horizontal spacing, vertical spacing etc. Is there an easier solution? I mean everything gets fitted in symmetric manner from letter size to a4 (something similar image getting resized from diagonals in symmetric way).

Best Answer

Use letterpaper as option (it's the default) and change the physical page parameters after the computations are made.

\documentclass{article}

\usepackage{kantlipsum}

\pdfpageheight=297mm
\pdfpagewidth=210mm
\pdfhorigin=\dimexpr1in+(210mm-8.5in)/2\relax
\pdfvorigin=\dimexpr1in+(297mm-11in)/2\relax

\begin{document}
\kant
\end{document}

The first 1in is the normal offset applied by TeX; we shift the origin by the difference between the dimension of A4 paper and of Letter paper, divided by 2.

This should work with any document class.

enter image description here