[Tex/LaTex] What causes rotation of landscape page while lscape in use

landscapelscapepdflscape

Pdf viewer rotates landscape while lscape in use in this far-from-minimal example.

Example bellow illustrates how PDF viewer rotates page that is rotated landscape page originally.

enter image description here

As was pointed out in comments, commenting pdfpages package shows no rotation by PDF viewer of the rotated landscape page.

enter image description here

This minimal example gives expected result: rotated landscape page is not rotated in viewer.

\documentclass{article}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{kantlipsum}
\usepackage{lscape}
%\usepackage{pdflscape} %uncomment this  and comment above line to see the difference
\begin{document}
\begin{landscape}
  \kant[1-4]
\end{landscape}
\kant[5-10]
\end{document}

This is followup of this question with the test result : the printer prints rotated landscape page on portrait page.

What causes undesired behaviour, actually behaviour of pdflscape?

A note: This question seeks the same information and is unanswered as well.

Best Answer

In correspondence with Andreas Matthias was pointed out:

Pdfpages is loading pdflscape.sty internally. And pdflscape rotates all landscape pages.

As a quick workaround, please add the following after loading pdfpages. This disables pdflscape to rotate the pages.

\makeatletter
\renewcommand\PLS@Rotate[1]{}
\makeatother

Now the behaviour is as expected.