I found here on tex.stackexchange.com an excellent & beautiful portrait-but-1-page-landscape-table snippet (see below).
This is exactly what I need, however I want a pagenumber, but when I comment out thispagestyle{empty}, then the pagenumber itself is not rotated. So that is still portrait.
How to get the footer/header also rotated? The rest need to stay the same (well functionally, so only impact a single page with table, \afterpage, PDF rendering, etc).
MWE:
\documentclass{article}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{capt-of}% or use the larger `caption` package
\usepackage{lipsum}% dummy text
\begin{document}
\lipsum % Text before
\afterpage{%
\clearpage% Flush earlier floats (otherwise order might not be correct)
% \thispagestyle{empty}% empty page style (?)
\begin{landscape}% Landscape page
\centering % Center table
\begin{tabular}{llll}
A & B & C & D \\
\end{tabular}
\captionof{table}{Table caption}% Add 'table' caption
\end{landscape}
\clearpage% Flush page
}
\lipsum % Text after
\end{document}


\dimexprsays to convert what follows into a dimensional quantity, thus allowing primitive length additions/subtractions in a place that otherwise expects a single length spec. The process is terminated by an unexpandable\relaxor, in this case, a}. You should be able to say, for example,\dimexpr\paperwidth-1cm\relaxif you wanted to specify the offset from the bottom as a metric centimeter. Given a particular document style, I see nothing wrong with replacing\dimexpr\paperwidth-1inwith a fixed length:xx cm. – Steven B. Segletes Aug 04 '15 at 19:35\the\dimexpr..., but it will be in points. There are questions on this site for how to convert to other length units. – Steven B. Segletes Aug 04 '15 at 19:44