Skip to content

fromHTML is not a function when I use jsPDF in vue #2992

@0721Betty

Description

@0721Betty
<script>
import { jsPDF } from 'jspdf'
...
export default { 
    methods: {
          getPdf() {
               const printDoc = new jsPDF('p', 'in', 'letter')
               console.log('printDoc', printDoc)
               // There is no method fromHTML in what is printed,so when I use printDoc
               // the console reports error: fromHTML is not a function
          },
    },
}
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions