As @Speravir said, the
layout package does exactly this: it prints the page layout, with all lengths. This is the best answer, since this package is part of LaTeX tools bundle, therefore "a part of all great TeX distributions".
Here's a MWE:
And here's the output:
layouts (plural) package extends the funtionality of
layout, allowing you to do much, much more. To begin with, you can print the page layout alone (with
\pagelayout) or just a table with the values of the page parameters (with
\pagevalues) — but it does much more than just that.
\pagedesign gives a simplified version of the
And a combination of the commands mentioned before gives an output similar to the one given by the