I am following recipe to view PDF in Android app.
My Xamarin.Forms app supports Android API level 16 and onwards. As per docs:
API levels below 19 are not capable of loading the local PDF file by specifying a ?file= query string to the viewer URL.
Instead, modify the DEFAULT_URL variable in the Assets/pdfjs/web/viewer.js file to reference the local PDF file.
If I change PDF path in viewer.js file it will point to same PDF and wont be dynamic. I want to view PDF from my external storage.
And path to that file will be dynamic. Can anyone tell how to achieve goal?