I have html page with dynamic content and I want to set output pdf file page heigh dynamicly regarding to content.
For now I've tried to set constant page size in settings.
$html2pdf = new Html2Pdf('P',array(80,250),'en', true, 'UTF-8', [2, 2, 2, 2]);
250mm heigth suits the best for me now, but sometimes content is to big and splits into many pages, which I don't need, or content to small and there are to much blank space in output pdf document. I want to have one page each time in pdf document with heigth related to content of original html page.
Thanks for any help.