Open PDF or DOC file from App


#1

Hi, I need to open a remote PDF from app and I use href for it, but when I open it, I’ve any method to close or return to app ( I’ve tried into emulator ). So: How return to APP or open into app view?


#2

I am using: window.open(filePath, ‘_system’, ‘location=no’);


#3

Could you made an example with a remote file?


#4

window.open(filePath, ‘_system’, ‘location=no’)
in here, filePath is url file pdf, doc


#5

I tried but I’ve the same behaviour as when I open pdf file by href. I’m not able to return to app.


#6

Do I need Cordova plugin? http://plugins.cordova.io/#/package/org.apache.cordova.inappbrowser
I think that is not you mean $window angularjs directive. Is’t right?


#7

You tried emulator or device, it only working on device, because emulator not install a PDF application


#8

I use inappbrowser plugin.