@ddelfio wrote:
Hi guys,
I've a trouble with download of a PDF file created with pdfmake. I have created and viewed the pdf made from charts.js, but now I would like to download the file.I tried to use ngCordova:
...
var blob = new Blob([pdf], {type: 'application/pdf'});
..
$scope.pdfUrl = URL.createObjectURL(blob);
...
$cordovaFile.writeFile(cordova.file.dataDirectory,'fileName.pdf',$scope.pdfUrl, true).then(function(result){
alert('Success! Survey created!');
}, function(err) {
console.log("ERROR");
})But I got an error 1: NOT_FOUND_ERR
What's wrong? Please help me...I'm going crazy!! Thank you all guys
Posts: 1
Participants: 1