How to include a PDF as appendix into a latex document with respect to the original page orientations?

Jonas picture Jonas · May 11, 2016 · Viewed 17.5k times · Source

I am using the pdfpages package to include a PDF document as appendix into my main latex document as follows:

\usepackage{pdfpages}
\includepdf[pages=-]{myfile.pdf}

In general, this approach works but I have the following issues:

  • The page orientation of the pages of the included PDF file vary: some are portrait and some are landscape. When including the PDF like described above all included pages have portrait orientation. Is it possible to use the original orientation of each included page?
  • The pages of the Latex PDF document are numbered. The pages of the included PDF are not numbered. Is it possible to continue the normal numbering also for the included pages?

Thanks!

Answer

Tom Solid picture Tom Solid · May 12, 2016

To continue normal numbering:

\includepdf[pages=-,pagecommand=\thispagestyle{plain}]{myfile.pdf}