Skip to content

It does not promt to download #747

Open
@Rombersoft

Description

@Rombersoft

If I use

html2pdf().from('HelloWorld').save();

inside a static HTML file, it works fine.

But if I use
html2pdf().from('HelloWorld').save();

inside a web page generated by server this code does not prompt to download

document.addEventListener("DOMContentLoaded", function () {
            workSuccess = workSuccessOverride;
            document.getElementById("uploadButton").addEventListener("click", requestCrosswordMaker);
        });

function requestCrosswordMaker() {
            html2pdf().from('HelloWorld').save();

In the console output, I see this:

19663c19b31 536ms Document cloned, using computed rendering [html2pdf.bundle.min.js:2:447917](https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js)
19663c19b31 536ms Starting DOM parsing [html2pdf.bundle.min.js:2:447917](https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js)
19663c19b31 553ms Starting renderer [html2pdf.bundle.min.js:2:447917](https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js)
19663c19b31 555ms Canvas renderer initialized (794x22 at 92.64999389648438,0) with scale 1 [html2pdf.bundle.min.js:2:447917](https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js)
19663c19b31 573ms Finished rendering [html2pdf.bundle.min.js:2:447917](https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js)

I don't understand at all what could be preventing him from uploading the file. I've tried in Edge, Chrome and Firefox browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions