title: Propagate the orientation setup at iTextSharp.text.Document creation to the Print dialog
body: <p>I use iTextSharp to create a PDF document in Landscape orientation by employing <strong>PageSize.A4.Rotate()</strong> to set its PageSize. The document is fed into a <strong>Stream</strong> and later saved into the database as a byte array (in a VARBINARY field). </p>
  
  <pre><code>Stream stream = new MemoryStream(); 
  iTextSharp document = new Document();
  document.SetPageSize(PageSize.A4.Rotate());
  
  var writer = PdfWriter.GetInstance(document, stream)
  document.Open()
  
  // Write to the document
  
  document.Close();
  byte[] file = stream.ToArray();
  
  /* In the actual environment the byte array is stored in the database, to be retrievable later */   
  
  // WHERE context: HttpContext in a class that implements IHttpHandler
  context.Response.AppendHeader("Content-Disposition", "attachment;filename=Test.pdf");
  context.Response.AppendHeader("Content-Length", file.Length.ToString());
  context.Response.ContentType = MediaTypeNames.Application.Pdf;
  
  context.Response.BinaryWrite(file);
  </code></pre>
  
  <p>The problem I run into is that when its retrieved and opened via a browser (or saved to disk), when printing, the Print dialog opens in the default Portrait orientation. </p>
  
  <p>Since its not the easiest thing to communicate to all users that they should first go to Page Setup and set the orientation to Landscape, how possible is it to propagate the orientation setup used at document creation all the way to the Print dialog?</p>