title: I want to design a receipt with custom styles and dynamic data on a button click in ReactJS before exporting it to PDF
body: <p>I want to generate a receipt with dynamic data on a button click in ReactJS then I want to export it to pdf on the same button click. I am looking for a package or a trick by which I can design the receipt. I have come across the JSPDF package but it is very difficult to set the page coordinates there.<a href="https://i.stack.imgur.com/34bfb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/34bfb.png" alt="enter image description here" /></a></p>