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.

Xamarin.iOS load file from documents folder

More
9 years 3 months ago #11474 by pfrank
Hi,

I'm working with the the Xamarin.iOS wrapper you provide. Is it possible to open a PDF file from the apps document folder? A path like this:
/var/mobile/Containers/Data/Application/773A1AD2-5906-420E-94B6-F86FFCA9ED11/Documents/test.pdf

I tried creating a PDFViewController as in your demo-app with this path, but the controller is always null.
Is this somehow possible?
More
9 years 3 months ago #11480 by emanuele
Hi,

the "Show" method of RDPDFViewController can open a pdf file from a web url or from Documents directory.
To distinguish between web url and local path we use the standard file scheme "file://".
To open a pdf file from Documents directory, you can simply use this path: "file://your_file.pdf", if the pdf file is in a subfolder of Documents directory you have to use "file://subfolder/your_file.pdf"
More
9 years 3 months ago #11483 by pfrank
Unfortunately I tried file:// + the absolute path I mentioned above, instead of the relative path from Documents directory.

So Thanks a lot!
Time to create page: 0.385 seconds
Powered by Kunena Forum