I am trying to print pdf file generated of a form, printjs
but when I import printjs no vuejs component load at all, the title in the browser show up but component is not rendered.
import printJS from 'printjs'
then later I call the function:
methods: {
printSlip: function(){
printJS('docs/printjs.pdf')
}
when button is clicked:
<input type="submit" v-on:click="printSlip" value="Print" />
Are you sure that the printjs.pdf file can be found/path is correct?
Do you see some error in the console?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.