title: Convert itextsharp PDF from portrait to Landscape mode
body: <p>I have a <strong>PDF</strong> generation code which was previously downloaded in <strong>Portait</strong> mode and the code behind is shown below.</p>
  
  <pre><code>Document doc = new Document(PageSize.A4, 88f, 88f, 10f, 10f);
  </code></pre>
  
  <p>which was working properly.</p>
  
  <p>Now I need the same PDF to be converted to Landscape mode, I googled it and found this code.</p>
  
  <pre><code>Document doc = new Document(new Rectangle(288f, 144f), 10, 10, 10, 10);
  doc.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
  </code></pre>
  
  <p>But still its displaying in Portrait mode.Any help appreciated.</p>