I've got an html with 2 divs. The first one is half page long (in height), and the other one can be several pages long.
When I convert it using html2pdf, the correct way to do it would be put the first div in the first page (this is ok), then put the second div under the first one, and when the text arrives at the end of that page, then it should continue on the second page. But what I am getting is the first div in one page, and all the second div in another page, so the first page is half-blank because the first div doesn't occupy all the page.
¿is there any way to tell html2pdf that the second div should be split when it arrives at the end of the page instead of putting a page-break before it?
thank you!