title: HTML to PDF with absolute positioning
body: <p>I need to generate a PDF, which the user will print on a <em>Specific form</em>, so I have positioned the data in a way that the form will be filled in a proper way after printing.</p>
  
  <p>As of now I have used <strong>absolute positioning</strong> like</p>
  
  <pre><code>&lt;div class="page_container"&gt;
      &lt;div class="first_name"&gt;
         John Smith
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The style is</p>
  
  <pre><code>.page_container {
      position:relative;
  }
  
  .page_container .first_name {
      position:absolute;
      left:50px;
      top:110px;
  }
  </code></pre>
  
  <p>But I could not achieve the positioning in the generated PDF. I have tried with <strong>TCPDF and mPDF</strong> so far.</p>
  
  <p>My question would be, is there any html to <strong>pdf library</strong> available to support the above code, else what could be the <strong>best alternative</strong> to achieve my requirement.</p>
  
  <p>Additional Info: I develop this on Symfony2, I am also ready to use a core php library.</p>