title: HTML Page to PDF Issues
body: <p>The project I have is to create a Vista Print like application. I have created a very basic interface that places a resizable div in an area that can be dragged around. I am also able to place text into this div via pop-up iframe with designmode. I then write this to a database. 
  I then call this data and create a pdf using Coldfusions cfdocument. </p>
  
  <p>The issue is when the PDF is created the font looks slightly thicker and the word wrap is different than the html page interface which is very important. Note: The word wraps are determined by the divs height and width. It looks fine on the cfdocument process page it is just off when the pdf is created. Anyone have any ideas on this or can point me to some info that could help? </p>
  
  <p>Thanks in advance.</p>
  
  <p>Code Here:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;cfset webRes = "96"&gt;
  &lt;cfset pxlWidth = "921"&gt;
  &lt;cfset pxlHeight = "1178"&gt;
  &lt;cfset inWidth = (pxlWidth/webres)&gt;
  &lt;cfset inHeight = (pxlHeight/webres)&gt;
  
  &lt;cfquery name="qTextData" datasource="ds"&gt;
  SELECT        DocID, TextID, Width, Height, PosX, PosY, FontFamily, FontColor, FontSize, TextValue
  FROM            TextEditor
  WHERE        ((DocID = #session.docid#))
  &lt;/cfquery&gt;
  
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Create PDF&lt;/title&gt;
  &lt;/head&gt;
  &lt;cfoutput&gt;
  &lt;cfdocument filename="mypdf.pdf" name="mypdf" fontembed="yes" format="pdf" overwrite="yes" pageheight="#inHeight#" pagewidth="#inWidth#" pagetype="custom"&gt;
      &lt;cfdocumentsection margintop="0" marginright="0" marginbottom="0" marginleft="0"&gt;
          &lt;body align="center" marginheight="0" marginwidth="0"&gt;
              &lt;div id="pageContainer" style="background-image:url(resources/image.caspx.jpg); background-repeat:no-repeat; height:#pxlHeight#px; width:#pxlWidth#px;"&gt;
                  &lt;cfloop query="qTextData"&gt;
                      &lt;div id="divTextField_#TextID#" style="position:absolute; top:#PosY#px; left:#PosX#px; width:#width#px; height:#Height#px; color:#FontColor#; font-family:#FontFamily#; font-size:#FontSize#pt; vertical-align:text-top; line-spacing:normal;"&gt;
                          #TextValue#
  
                      &lt;/div&gt;                  
                  &lt;/cfloop&gt;
              &lt;/div&gt;
          &lt;/body&gt;
      &lt;/cfdocumentsection&gt;
  &lt;/cfdocument&gt;
  &lt;/cfoutput&gt;
  
  &lt;script type="text/javascript"&gt;
      window.open('http://linktopdf/mypdf.pdf','newWin','resizable=1');
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>