jsPDF not working on Safari-open source projects MrRio/jsPDF

I need to have a button at the end of a HTML page that generates and saves a PDF, so I decided to try jsPDF.

function pdfComprovativo(arg){
    var doc = new jsPDF();
    doc.text(20, 20, 'Hello world!');

I tested this on several browsers and it’s not working for Safari (5.1.7 version).


It works if I replace the save() with this, but I can’t use this solution because of popup blockers.