kempsteven / vue-html2pdf

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.
https://www.npmjs.com/package/vue-html2pdf
MIT License
432 stars 75 forks source link

Impossible to use in web component #83

Open Lezireg opened 3 years ago

Lezireg commented 3 years ago

Describe the bug I try to use the library in a web component with vue.js built-in web component tool.

See : https://cli.vuejs.org/guide/build-targets.html#web-component

The library work fine before the export in webComponent but it don't when i use the created component, it seems to not correctly import needed library ressources.

it's the same when i use '--inline-vue' command.

Package Version e.g. 1.8.0

Lezireg commented 3 years ago

After further investigations it seem to be a problem with the shadow dom, the style don't load properly after the export in web component. Currently the data correctly display itself in preview popup but not the style.