Vue Html Pdf

Posted on  by admin
Please see the demo site and demo github for easier understanding of the usage of the package.

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes. Getting started. Migrating from 1.7.x to 1.8.x (and so on).

Petr KleinPetr Klein
627

This props can seen in the Usage Part.

If you have set a value to this prop, the props below will be overridden:.

Any value inputed to those props above will have no effect.

This events can seen in the Usage Part. This is a sample Use case of @beforeDownload event.

As you can see the event arguments contains a { html2pdf, options, pdfContent } destructured object.The arguments can used to have full control of the html2pdf.js process.

Page Break