Skip to content

Error in console when downloading html to pdf. #3218

@HANYUNSEONG

Description

@HANYUNSEONG

Hello

I am developing a function to save html as pdf using jspdf in react.
but I got a following error message.

image

My code :

const container = document.getElementById('container');
const doc = new jsPDF("p", "mm", "a4");

doc.html(container, {
    callback: (doc) => doc.save(),
});

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