This solution allows for dynamically creating a downloadable PDF file of the current page.
Export to A4 by default, matching current element display width. This means that the output is consistent with the webpage.
The PDF is created one page at a time, meaning that you can capture and save complicated PDF content such as charts, images and canvas items. For example, this could be used for offering a frontend quote form with a download quote option which exports all of the input fields and totals.