title: PHP TCPDF - How do I vertical align text in a table cell?
body: <p>By default, the values within tables cells (within tables generated by TCPDF) are vertically aligned right at the top of the cell.</p>
  
  <p>Has anyone found a simple method for vertically aligning text to the middle of the cell?</p>
  
  <p>I have found a couple of proposed solutions online but these don't strike me as ideal.</p>
  
  <p>For example one suggestion (http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4385696) is to set the contents of each cell using TCPDF's MultiCell() method, but this is a pain when you simply want to write out your HTML code and then generate the PDF.</p>
  
  <p>Another suggestion (http://bytethinker.com/blog/tcpdf-and-vertical-alignment-of-table-cells) is to place spans within each cell and create blank lines with line breaks in these spans in order to force your text down (and thus towards the vertical centre), but this is a bit of a hack.</p>
  
  <p>Has anyone found a better / cleaner way to achieve this? Surely a library this popular would cater for such a common requirement?</p>