Forum Academy Marketplace Showcase Pricing Features

Show page as a pdf

Hello all,

My Users can create an invoice an preview it before sending it by email to their customer. Currently the Preview page is empty because I’m stuck!

The issue is that my app is a single page app (all on the index page) and only 500 px wide, so the full invoice Preview would not display correctly (as the customer would see it) so I am thinking to display it as a pdf.

My full invoice design is on a separate page (invoice-design) to the index so how should I approach this? I guess I need to send the invoice data to the invoice-design page and then turn that into a pdf and send that back to the index preview page?