title: Using a script to split PDF, but not working with landscape PDF
body: <p>I'm trying to find a solution to split PDFs I'm receiving in my email in order to start OCR (invoices).
  The script is working well but only for 1-2pages document, so I tried to figure out how to manage multiple pages PDFs and decided to looking for a code to split big PDF into multiple PDF with one page...</p>
  <p>I get this topic : <a href="https://stackoverflow.com/questions/15414077/merge-multiple-pdfs-into-one-pdf">Merge Multiple PDF&#39;s into one PDF</a>
  And tried something based on this script : <a href="https://script.google.com/a/aramisauto.com/d/1X85wgpK71UWpmAVpeDOXbv84WQyaAZuf8WTjO-5MKxmWT716Tw5G1K1L/edit?usp=sharing" rel="nofollow noreferrer">link</a> @pokyCoder (line 484)</p>
  <p>Results are pretty good but the script is not working on landscape PDF with multiple pages. The script make every slide to portrait, and those are uncomplete to read then.</p>
  <p>How could I get the script to work with landscape?
  Or at least, how can I detect the layout orientation before the autostart?</p>
  <p>Any help appreciated :)</p>