\documentclass[varwidth=true,border=5mm]{standalone}
\usepackage{blindtext}
%% \usepackage{geometry}
\begin{document}
\blindtext
\blinddocument
\end{document}
