I have a document (article class) in which sections of text are interrupted by sideways tables. In order to be able to view the document properly I am using
\newpage
\global\pdfpageattr\expandafter{\the\pdfpageattr/Rotate 90}
and
\newpage
\global\pdfpageattr\expandafter{\the\pdfpageattr/Rotate 0}
to turn the pages in the viewer.
The turning works well however I cannot use \newpage after a text section and then rotate using pdfpageattr without inserting text inbetween. If I do that all the tables disappear. Here an example of this:
\newpage
text I dont Want But Need To But There For Tables to show up!
%************************************************************
% FS Tables
%************************************************************
\global\pdfpageattr\expandafter{\the\pdfpageattr/Rotate 90}
%%% Table I: Loan Amount
\begin{sidewaystable}
\centering
\caption{Loan Amount - Closest-Saathi to Client km}
\input{reg_fs_e_sewaloan_amount_iv1}
\end{sidewaystable}
I would usually include a minimalist document here but in this case it seems rather complicated because I am importing tables etc. Perhaps we can answer the question this way.
\clearpageaftersidewaystablehelps? – Heiko Oberdiek Sep 13 '12 at 14:29pdflscapepackage. – egreg Sep 13 '12 at 14:48