2

I am generating pdf using react-to-print library,

But i want to break the page in new page,

There is css property break-after:always, it can work, but not all major browser supports it now,

Anyone know any other method then brute force margin ?

Working with pdf is hard, specially css part.

https://www.npmjs.com/package/react-to-print

https://developer.mozilla.org/en-US/docs/Web/CSS/break-after

1
  • Could you share the code you are currently trying please? Commented Jun 7, 2022 at 19:58

1 Answer 1

-2

I would like to recommend to use React PDF npm library. Please check https://react-pdf.org

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.