0

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" />
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197

1 Answers1

0

Are you sure that the printjs.pdf file can be found/path is correct?
Do you see some error in the console?

mava
  • 2,544
  • 1
  • 10
  • 17