title: Generate pdf with jspdf and Vue.js
body: <p>I am new with Vue.js, and I am trying to generate a PDF, but I have no idea how to do it.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>import * as jsPDF  from "jspdf"
  
  export default {
  
    props: ['id'],
  
  
    methods: {
      pdf () {
        const doc = new jsPDF()
      }
    }
  
  }
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Property or method "pdf" is not defined on the instance but referenced during render</p>
  </blockquote>