Is't possible to use with Vue.JS?
Hi.
I made a simple implementation.
https://github.com/knakamatsu/vue-pdf/blob/master/src/components/PDFgen.vue
Thanks.
Thank. But I don't understand how to pass a
var docDefinition = { content: 'This is an sample PDF printed with pdfMake' }
Above is example how to use pdfmake in Vue.JS framework. For preparing content you can use javascript/framework ability (eg. append array item/variable, etc.). If you do not know how, use google or Vue.JS support.
@knakamatsu thank you so much,
I used this file in my VueJS project, but i get this error:
'Cannot set property 'render' of undefined'
I tried different approachs but i can't resolve
I used this file in my VueJS project, but i get this error:
'Cannot set property 'render' of undefined'
I tried different approachs but i can't resolve
I found an example online that used the following as an import, hopefully it helps
import pdfMake from "pdfmake/build/pdfmake";
Most helpful comment
Hi.
I made a simple implementation.
https://github.com/knakamatsu/vue-pdf/blob/master/src/components/PDFgen.vue
Thanks.