title: How to include a PDF as appendix into a latex document with respect to the original page orientations?
body: <p>I am using the pdfpages package to include a PDF document as appendix into my main latex document as follows:</p>
  
  <pre><code>\usepackage{pdfpages}
  \includepdf[pages=-]{myfile.pdf}
  </code></pre>
  
  <p>In general, this approach works but I have the following issues:</p>
  
  <ul>
  <li>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?</li>
  <li>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?</li>
  </ul>
  
  <p>Thanks!</p>