0

I have used snappy pdf for html to pdf. For dynamic page break used

.keep-together {
    page-break-inside: avoid;
}

add keep-together class in every section. That is working fine. Now i need to know which html content reach 2nd page after page break, because i need to apply some style for 2nd page. How can i do that.

Shuvro Akash
  • 540
  • 5
  • 17

1 Answers1

0

Add following style and clear your site and the server cache.

page-break-before: always

Use this style for which you want get element to top of the second page. Also add separate class for that element to identify it is the second page element.

kavindalb
  • 11
  • 3