Home > front end >  How can i separate or print 2 selectors on different page using printThis?
How can i separate or print 2 selectors on different page using printThis?

Time:09-29

I just want to print 2 elements but when I do it does not look well. My alternative solution was two buttons per element but it is not good.

I used this library enter image description here

When im going to print/download here is the preview enter image description here

Are there any ways to separate them?

Here is my print code. I got 2 elements. $("#pdf, #pdf2").printThis();

CodePudding user response:

Just add css style "break-after: page;" between the two section/table

<div> Section </div>

<div style="break-after:page;" ></div>

<div> Section </div>


  • Related