Я создаю pdf из html. проблема в том, что если есть большой контент, то он не отображается должным образом. Во-первых, появляется пустая страница, затем содержимое перекрывает нижний колонтитул, но полный текст не отображается. Остальное содержимое скрывается, а не переходит на следующую страницу. Я пробовал page-break-after:always; page-break-inside:avoid;
большой контент, не переходящий на следующую страницу в dompdf
любая идея по этому вопросу?
проверка ниже код: -
$html = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry
ÆØÅ ÆØÅ ÆØÅ ÆØÅ ";
pdfGenerate($html);
function pdfGenerate($html="")
{
require_once("dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$canvas = $dompdf->get_canvas();
$font = Font_Metrics::get_font("Arial");
$canvas->page_text(510, 775, "{PAGE_NUM} av {PAGE_COUNT}",
$font, 10, array(0,0,0));
$dompdf->stream("sample.pdf");
}
Без более подробно это маловероятно, чтобы знать в чем проблема. Любой пример HTML? – apokryfos
@apokryfos проверить мое редактирование – ripa
близко и отрицательно оценили. Но у U есть ответ на этот вопрос? – ripa