title: function that can use iText to concatenate / merge pdfs together - causing some issues
body: <p>I'm using the following code to merge PDFs together using iText:</p>
  
  <pre><code>public static void concatenatePdfs(List&lt;File&gt; listOfPdfFiles, File outputFile) throws DocumentException, IOException {
          Document document = new Document();
          FileOutputStream outputStream = new FileOutputStream(outputFile);
          PdfWriter writer = PdfWriter.getInstance(document, outputStream);
          document.open();
          PdfContentByte cb = writer.getDirectContent();
          for (File inFile : listOfPdfFiles) {
              PdfReader reader = new PdfReader(inFile.getAbsolutePath());
              for (int i = 1; i &lt;= reader.getNumberOfPages(); i++) {
                  document.newPage();
                  PdfImportedPage page = writer.getImportedPage(reader, i);
                  cb.addTemplate(page, 0, 0);
              }
          }
          outputStream.flush();
          document.close();
          outputStream.close();
      }
  </code></pre>
  
  <p>This usually works great! But once and a while, it's rotating some of the pages by 90 degrees? Anyone ever have this happen? </p>
  
  <p>I am looking into the PDFs themselves to see what is special about the ones that are being flipped.</p>