title: PHP: generating PDF documents. How to create the template?
body: <p>i have found this <a href="http://www.web-development-blog.com/archives/create-pdf-documents-online-with-tcpdf/" rel="nofollow">tutorial</a> to generate a pdf.</p>
  
  <p>In that tutorial there is this kind of code:</p>
  
  <pre><code>// list headers
  $pdf-&gt;CreateTextBox('Quantity', 0, 120, 20, 10, 10, 'B', 'C');
  $pdf-&gt;CreateTextBox('Product or service', 20, 120, 90, 10, 10, 'B');
  $pdf-&gt;CreateTextBox('Price', 110, 120, 30, 10, 10, 'B', 'R');
  $pdf-&gt;CreateTextBox('Amount', 140, 120, 30, 10, 10, 'B', 'R');
  </code></pre>
  
  <p>Should i write this kind of code by hand or there is any app (word processor, vectorial graphics app, what ever) where I can draw the template (size of the cells, colors, etc) of the pdf document first?</p>
  
  <p>I have already created the invoice for the web using HTML/CSS. </p>
  
  <p>Is my first time generating PDF documents so any advise will be wellcome.</p>
  
  <p>Regards</p>
  
  <p>Javi</p>