Skip to content

Canvas is cutted of on A4 #69

@bvlasov

Description

@bvlasov

Hello! I am using chart.js for graphics on my web page.
The problem:
On pdf view one of them is cutted for A4 view.
My config:
const openPdfInNewWindow = (pdf) => {
const blob = pdf.output('blob');
window.open(window.URL.createObjectURL(blob));
};

    html2pdf(input, { // my selector
        margin: 0,
        filename: name, // some name
        image: { type: 'jpeg', quality: 1 },
        html2canvas: { scale: 2, logging: true },
        jsPDF: { unit: 'pt', format: 'a4', orientation: 'l' },
        pdfCallback: openPdfInNewWindow,
    });

Could you please take a look and tell what's my bad?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions