title: PdfSharp - Wrong PDF page settings when document is opened in Acrobat
body: <p>I have written a piece of code which uses the PdfSharp library. The instance of <code>PdfSharp.Pdf.PdfDocument</code> created saves to disk as expected. The right content is displayed, but onto the wrong page settings.</p>
  <p>The default page settings for PdfSharp are:</p>
  <ol>
  <li><code>PdfSharp.PageSizes.A4</code></li>
  <li><code>PdfSharp.PageOrientation.Portrait</code></li>
  </ol>
  <p>My problem is that these settings seem to override the required settings.</p>
  <p>I create the instance of <code>PdfDocument</code> class and adds a new instance of <code>PdfPage</code> class to its Pages collection property. Then, I setup the page like this:</p>
  <ol>
  <li><code>PdfDocument.Pages[0].Size = PdfSharp.PageSizes.Letter</code></li>
  <li><code>PdfDocument.Pages[0].Orientation = PdfSharp.PageOrientation.Landscape</code></li>
  <li>I draw the strings (this works fine)</li>
  <li>I save the document to disk (this works fine)</li>
  <li><code>Process.Start(myPdfFilename)</code> - then Acrobat Reader opens with my
  document.</li>
  <li>The page settings are A4 - Portrait...</li>
  </ol>
  <p>I'm quite confused. I know of an option within Acrobat Reader that allows the user to change the page orientation without changing the text direction. No matter whether I check this option or not, still the wrong settings keep going.</p>
  <p>Anyone has an idea? Thanks!</p>