\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[polish]{babel}
\usepackage{newtx}
\usepackage{layouts}

\begin{document}
\printinunitsof{mm}{\pagevalues}
\pagediagram
\end{document}