Viewing PDFs in Native Application with Native file documents PDF viewer starting from PDF URL - Downloading the file to the device (IOS) and returning the filePath - Storing the filePath in an object - retrieve object in page and using the PDF viewer

0
Hi,    I'm currently trying to visualise PDF's in my native application using the PDF viewer from the marketplace module Native File Documents.    The PDF's are stored externally on a sharepoint. In the beginning of my flow i retrieve the URL's of the PDF's. Afterwards i'm using custom javascript to download the PDF using RNFS and store it locally on the device. The javascript action returns the full path to where the file was saved. I've confirmed that data is downloaded and stored using logging.    The filepath that is returned is stored in an attribute called "fullpath" within a newly created object which i retrieve in a page using a datasource nanoflow in a listview. Within the listview i placed the PDF viewer widget. I've confirmed that the retrieved objects have a fullpath:   /var/mobile/Containers/Data/Application/32371091-7335-4AAD-871C-294809E11755/Documents/Document.pdf   However, i fail to visualise these PDF's in the app itself and i have no clue how to fix this.
asked
1 answers
0

You clould try the community commons function 'storeURLToFileDocument' and store the file in an entity that is a generalization of system.FileDocument and then use it for the pdfviewer.

answered