How I Can Break My Document Correctly With Dompdf?
I want to generate a PDF with DOMPDF through dynamic content. I am creating a table like this: input->cookie('language'); if (!isset($language))
Solution 1:
When dompdf splits content across pages it duplicates the styling on the element. That means the following style is copied to the split element, causing a page break:
.first-page + * {
page-break-before: always;
}
Since you just want a page break after the first page use the following instead:
.first-page {
page-break-after: always;
}
At least one issue has been logged related to this problem: "doubling" of page breaks when page-break-before applied to long element
Post a Comment for "How I Can Break My Document Correctly With Dompdf?"