Я использую dompdf для создания PDF из файла HTML.Файл отображается нормально на моем экране.Но когда я пытаюсь сгенерировать pdf из html-файла, pdf показывает, что он разрезает пополам то, что обычно отображается на экране.Читая документы dompdf, они говорят, что это только вопрос css, но я уже настроил многие свойства безрезультатно.Вот мой код
$dompdf = new Dompdf();
$dompdf->set_option('isRemoteEnabled', TRUE);
ob_start();
echo $cbx->GeraHTMLBoleto($i); //Outputs the html
$content = ob_get_contents();
ob_end_clean();
libxml_use_internal_errors(true);
$doc = new DOMDocument();
$doc->loadHTML($content);
$head = $doc->getElementsByTagName('head')->item(0);
$css_rule = $doc->createElement('style', 'table {-webkit-transform: scale(0.05);}');
$head->appendChild($css_rule);
$content = $doc->saveHTML();
//var_dump($head);die;
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'ISO-8859-1');
$dompdf->loadHtml($content, 'ISO-8859-1');
$dompdf->setPaper('a4', 'portrait');
//$customPaper = array(0,0,800,700);
//$dompdf->setPaper($customPaper);
$dompdf->render();
$dompdf->stream();