Show pdf after download
i want display pdf file stored :
var cnaam = 'ma.pdf';
var url = 'http://wis-mine.nl/info/' + cnaam;
var filepath = 'file:///mnt/sdcard/info/info/' + cnaam;
var filetransfer = new filetransfer();
$.mobile.loading( "show" );
filetransfer.download( url, filepath, function ( entry ) { openpdf( cnaam ); }, function ( error) { alert(error); } );
this working, how display pdf file in adobe reader, using samsung note2.
what can c.q. what's missing :
function openpdf(file)
{
// cordova.file.open( "/sdcard/info/info/"+ file,"application/pdf" ); // old way before 15nov 2016
cordova.plugins.fileopener.openfile("/sdcard/info/info/"+ file, onsuccess, function( onerror) {alert(onerror);});
return false;
}
can me?
what problem? i'm guessing using old version of plugin let open pdf (given date in comment), plugin & version trying & error(s) (if any) getting?
More discussions in PhoneGap Build
adobe
Comments
Post a Comment