title: Want to remove big margin at top of legal page format
body: <p>I tried the code below in MigraDoc GDI 1.50.4000-beta3b and 1.32.4334.0. When I set the page size to legal format, it either doesn't get converted to legal format, or it leaves a big margin at the top, as if the page size was 8.5 x 11, and the extra length was inserted at the top of the PDF. I'd rather the text start at the top of the page. How can I get around this?</p>
  
  <p>In the sample below, there is a large margin at the top.</p>
  
  <pre><code>// Create a new MigraDoc document
  Document document = new Document();
  //document.UseCmykColor = true;
  
  // Add a section to the document
  Section section = document.AddSection();
  section.PageSetup = document.DefaultPageSetup.Clone();
  section.PageSetup.PageFormat = PageFormat.Legal; //setting page size here didn't seem to work
  section.PageSetup.TopMargin = "0cm";
  
  // Add a paragraph to the section
  Paragraph paragraph = section.AddParagraph();
  
  paragraph.Format.Font.Color = Color.FromCmyk(100, 30, 20, 50);
  
  // Add some text to the paragraph
  paragraph.AddFormattedText(@"Hello World!", TextFormat.Bold);
  
  #if GDI
  // Using GDI-specific routines.
  // Make sure to use "#if GDI" for any usings you add for platform-specific code.
  {
  }
  #endif
  
  #if WPF
  // Using WPF-specific routines.
  // Make sure to use "#if GDI" for any usings you add for platform-specific code.
  {
  }
  #endif
  
  // Create a renderer for the MigraDoc document.
  PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(true);
  
  // Associate the MigraDoc document with a renderer
  pdfRenderer.Document = document;
  
  // Layout and render document to PDF
  pdfRenderer.RenderDocument();
  
  pdfRenderer.PdfDocument.Pages[0].Size = PdfSharp.PageSize.Legal;
  
  // Save the document...
  const string filename = "HelloWorld.pdf";
  
  pdfRenderer.PdfDocument.Save(filename);
  // ...and start a viewer.
  Process.Start(filename);
  </code></pre>