title: Conversion of word to pdf with original document dimensions using spire doc
body: <p>How to convert word file to a PDF, so that the page setup like margins and orientations of source documents and output PDF want to same.I tried the following code from <a href="http://www.e-iceblue.com/Knowledgebase/Spire.Doc/Program-Guide/How-to-Convert-Word-to-PDF.html#page" rel="nofollow" title="E-ICEBLUE">E-ICEBLUE</a>.</p>
  
  <pre><code>'Load Document
  Dim document As New Document()
  document.LoadFromFile("E:\work\documents\TestSample.docx")
  
  'Convert Word to PDF
  document.SaveToFile("toPDF.PDF", FileFormat.PDF)
  
  'Launch Document
  System.Diagnostics.Process.Start("toPDF.PDF")
  </code></pre>
  
  <p>But the converted PDF don't have the full document.Its header and footer is not showing and right side of the document is cutting. How to solve this ? <a href="http://i.stack.imgur.com/32u9c.png" rel="nofollow">This is my converted pdf</a></p>