Skip to content

Callback Function Not Called - addHTML & fromHTML #1693

@ewaschenko

Description

@ewaschenko

Thank you for submitting an issue to jsPDF. Please read carefully.

jsPDF Version
1.3.5

Have you tried using jspdf.debug.js?
Yes, currently using it.

Steps to reproduce

var doc = new jsPDF();
doc.fromHTML(document.getElementById("chip"), function(){
            console.log("Callback");
           doc.save('test.pdf');
})

If I use addHTML instead, I get the same issue. I see the canvas object being rendered

0ms html2canvas: html2canvas 1.0.0-alpha.10
189ms html2canvas: Canvas renderer initialized (1746x32 at 174,437) with scale 1

But the callback function is still not called.

http://jsbin.com/qamececego/edit?html,js,output

What I saw
Callback function is not called. Console.log not executed and pdf not saved.

What I expected
Callback function to be called.

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