- Posts: 4
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
Cordova, Xamarin, Basic4Android topics are listed here.
Read PDF from SD Card, cordova app
IP: 192.168.0.71
8 years 7 months ago #12741
by raju1980
Read PDF from SD Card, cordova app was created by raju1980
I am trying to read a pdf from Android storage. The physical path as shown by file explorer in android is. storage/emulated/0/"Download/test.PDF.
When I try RadaeePDFPlugin.open => url: "file:///storage/emulated/0/"+"Download/test.PDF".
It gives invalid path error. file:///mnt/sdcard/Download/test.PDF is also not working.
Please help how can I read pdf which is in sd card.
When I try RadaeePDFPlugin.open => url: "file:///storage/emulated/0/"+"Download/test.PDF".
It gives invalid path error. file:///mnt/sdcard/Download/test.PDF is also not working.
Please help how can I read pdf which is in sd card.
IP: 192.168.0.71
8 years 7 months ago #12742
by Davide
Replied by Davide on topic Read PDF from SD Card, cordova app
Hi,
I suggest you to look at this article : www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=84
I suggest you to look at this article : www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=84
IP: 192.168.0.71
8 years 7 months ago #12743
by raju1980
Replied by raju1980 on topic Read PDF from SD Card, cordova app
url: "file:///mnt/sdcard/Download/Test.pdf"
Is not working same error. It seems like some gap in documentation. I am into the default cordova project provided on github.
Is not working same error. It seems like some gap in documentation. I am into the default cordova project provided on github.
IP: 192.168.0.71
8 years 7 months ago #12744
by support
Replied by support on topic Read PDF from SD Card, cordova app
It seems the KB article in someway incorrect or incomplete.
Please, take a look at www.radaeepdf.com/forum/cordova/3699-ope...nternal-memory#12674 we was answering some weeks ago.
Please, take a look at www.radaeepdf.com/forum/cordova/3699-ope...nternal-memory#12674 we was answering some weeks ago.
IP: 192.168.0.71
8 years 7 months ago #12755
by raju1980
Replied by raju1980 on topic Read PDF from SD Card, cordova app
I tried this
url: cordova.file.externalRootDirectory+"Test.pdf",
But it gives same invalid path error. I have installed cordova file plugin and checked it in console. The path is correct.
Any suggestion?
url: cordova.file.externalRootDirectory+"Test.pdf",
But it gives same invalid path error. I have installed cordova file plugin and checked it in console. The path is correct.
Any suggestion?
IP: 192.168.0.71
8 years 6 months ago #12760
by Davide
Replied by Davide on topic Read PDF from SD Card, cordova app
Hi,
this guide shows you how to open pdf and other functionnality using cordova www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=84
This is an example that shows you how to open from assests : www.radaeepdf.com/forum/cordova/3699-ope...nternal-memory#12674
Are you using device with Android 6.0+?
The problem should be that you don't give the proper permission to read and write from the sdcard, these permission are necessary to open the pdf, this article will help you : developer.android.com/training/permissions/requesting.html
this guide shows you how to open pdf and other functionnality using cordova www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=84
This is an example that shows you how to open from assests : www.radaeepdf.com/forum/cordova/3699-ope...nternal-memory#12674
Are you using device with Android 6.0+?
The problem should be that you don't give the proper permission to read and write from the sdcard, these permission are necessary to open the pdf, this article will help you : developer.android.com/training/permissions/requesting.html
Time to create page: 0.415 seconds