Given an HTML page source code, i would like to know how to detect whether there is enough space to print the given content.
So far what i do is:
This is my controller:
function viewer($mode = NULL){
$this->load->helper(array('pdf', 'file'));
$html = $this->load->view('form/document.pdf.php', '',TRUE);
pdf_create($html, 'ABC_'.time());
}
$html is just a plain HTML document, nothing fancy there.
How can i know if the given $html should fit one, two or more A4 pages ?