How to add page break before or after an element?
I am using v 1.4.3
Where are you trying to add a page break, and what are you trying to do? If you give more context, then someone can help you.
In the report there are a section of dynamic text and two tables
At the end of table 1, I want to always create a new page before table 2 instead of showing table 2 right below table 1 in the same page
You are talking about print format?
yes, for print designer
You can check in the above discussion which I have shared.
I don’t think there is place to embed css style in the print designer. What do you think?
Especially for child table
I still don’t get it on how to add a style or additional div to put break-before
or break-after
from this link
I tried adding
Have you tried this?
ah I see, the link is about print builder
my problem is using print designer
I have the same issue.
Eventhough I define 2 pages in Print designer and put some content on the first and some on the second page. When printing it, all content is put into 1 page.
Some say, that it helps if you have the correct wkhtmltopdf installed. (explaned as first item in the faq here GitHub - frappe/print_designer: Visual print designer for Frappe / ERPNext)
However I already have that and I think I saw a post from you that you already also have checked wkhtmltopdf.
I change my wkhtmltopdf from 0.12.5 to 0.12.6.1r3 none helped