title: Drawing in MigraDoc document using XGraphics
body: <p>I have generated some PDF report using MigraDoc. Initial code is as follows:-</p>
  
  <pre><code>MigraDoc.DocumentObjectModel.Document document = new MigraDoc.DocumentObjectModel.Document();
  
  MigraDoc.DocumentObjectModel.Section section = document.AddSection();
  ...
  
  Paragraph paragraph = section.Headers.Primary.AddParagraph();
  ....
  
  table = section.AddTable();
  ...
  
  paragraph = section.Footers.Primary.AddParagraph();
  ...
  </code></pre>
  
  <p>The PDF was rendered successfully. Now I want to add some graphics into the pages of this document. I have gone through several articles for that and found that everyone using <strong>PdfDocument</strong> class instead of <strong>MigraDoc.DocumentObjectModel.Document</strong>. Is it possible to apply graphics into pages of a document of type <strong>MigraDoc.DocumentObjectModel.Document</strong> using XGraphics? If it is not possible, what is the best way to mix <strong>PdfDocument</strong> with <strong>MigraDoc.DocumentObjectModel.Document</strong> to accomplish the same?</p>