Hey there,
I just tested this out on my end, and it seems like this might be a bug.
Some other users have found workarounds discussed here: http://community.retool.com/t/using-jspdf-from-html-in-sandbox/3908/7
I have created a bug report for this issue, and will report back here once the issue has been addressed!