title: Python xhtml2pdf to generate PDF in landscape mode
body: <p>I am using the python xhtml2pdf module and the pisa class to create a PDF. Now the PDF is in vertical A4 format, how do I change it to have the PDF to landscape layout? </p>
  
  <pre><code>import xhtml2pdf.pisa as pisa
  result = StringIO()
  pdf = pisa.CreatePDF(
          StringIO("This is my PDF"),
          result)
  </code></pre>