使用tcpdf将内容拟合到列

I am generating PDF using tcpdf, I want to display whole content in 2 columns of same size, Now the problem is , some content (like table) is getting overwrite on second column.

How to fit content in column width?

   $this->resetColumns();

   $this->setEqualColumns(2);

   $this->selectColumn('');

   $content = $_POST['pdf_content'];

   $this->writeHTML($content, true, false, true, false, 'J');

the easiest way is to use only html, like this:

 $content = '<html><table><tr><td>'.$_POST['pdf_content'].'</td></tr><table></html>';
 $this->writeHTML($content, true, false, true, false, 'J');