I am using php MPDF to generate a PDF files it working fine. But i want to set the height of a pdf page as auto based on content size. Content will come dynamically from DB. Anyone give some idea..
The following is my code
$p = 'P';
$mpdf->_setPageSize(array(200, round($mpdf->y)), $p);
this output also not correct