cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

Not working after I updated the version to 1.5.4 #46

Closed mallikvarma closed 6 years ago

mallikvarma commented 6 years ago

Hi, My app was crashing on android 4 with 1.0.4 version so I have updated the pdf-generator version to 1.5.4 with a hope that it would fix the crashing issue. But now pdf generator stopped working. Below is how I use to generate pdf from my app with 1.0.4. is it still correct with 1.5.4 ?

pdf.htmlToPDF({ data: myhtml, documentSize: "A4", landscape: "portrait", type: "base64" }, function(){ }, function(err){ alert('Could Not Generate PDF : '+err) });

cesarvr commented 6 years ago

what version of Andriod/iOS are you using ? did you try this example it should work out-of-the-box ?

mallikvarma commented 6 years ago

I am using Android 6.0.1 and the above example is not accessible. it shows 404 error.

cesarvr commented 6 years ago

Sorry is there was a typo in the URL this is the correct.

mallikvarma commented 6 years ago

that example is working in my device and only difference is that I was using 'type: base64' instead of {type:"share"} for generating pdf from html which was interestingly working in 1.0.4 version but not in 1.5.4.

Thanks for the help