Skip to content

large file throws error Uncaught (in promise) Error: Invalid argument passed to jsPDF.scale #3548

@rutasa

Description

@rutasa

Everything was working just fine until I tried to add 87th element to the generated pdf file. At that point, it started throwing error Uncaught (in promise) Error: Invalid argument passed to jsPDF.scale.

My setup:

const doc = new jsPDF("landscape", "px");

const elements = document.getElementsByClassName("customChart"); 

await creatPdf({ doc, elements });

doc.save(`charts.pdf`);

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