cordova - Phonegap PDF Viewer or Open pdf file from local for Windows Phone 8 -
i working in phonegap windows phone 8 app. stuck opening pdf file local area (like in phone >> documents >> myfolder>>1.pdf)
i tried in js
document.addeventlistener("deviceready", deviceready, false); function deviceready() { window.open('.documents/myfolder/1.pdf', '_blank', 'location=no'); }
but doesn't work.
i tried
window.open('**documents**/myfolder/1.pdf', '_blank', 'location=no');
and
window.open('**/documents**/myfolder/1.pdf', '_blank', 'location=no');
but neither works.
otherwise, if there pdf viewer plugin phonegap , wp8, please share link.
note: have adobe pdf reader installed on phone
try of following works you.
window.open('http://www.example.com/test.pdf', '_system', 'location=yes'); window.open('http://www.example.com/test.pdf', '_blank', 'location=no,closebuttoncaption=close,enableviewportscale=yes');
check google pdf viewer
window.open('https://docs.google.com/viewer?url=http://www.example.com/test.pdf&embedded=true', '_blank', 'location=yes');
Comments
Post a Comment