Please help me, I want to pick the pdf file locally in xamarin forms(cross platform). So on a button click i need to open the file dialog to pick pdf file locally.
Asked
Active
Viewed 5,059 times
3
-
What have you tried so far ? How about posting some code or similar ? This page is not a codemill please edit your question and show some effort. Than we will gladly help you to fix your problem – Mingebag Dec 20 '16 at 10:37
-
Possible duplicate of [How to view PDF file using Xamarin Forms](http://stackoverflow.com/questions/27820246/how-to-view-pdf-file-using-xamarin-forms) – Mohammad Yusuf Dec 20 '16 at 10:49
1 Answers
7
This is not something that can be done in a true cross-platform way. For example; on iOS you cannot access the filesystem directly, while on Android and UWP you can.
I have created a NuGet Xamarin.Plugin.FilePicker (Github) (original by rafaelrmou), which tries to solve this for you. On iOS you need iCloud Drive to be configured.
If you do not want to use the plugin you could always look into the code and roll your own.

Gerald Versluis
- 30,492
- 6
- 73
- 100
-
It works on Xamarin.Android not in Xamarin.Form. Please confirm? – Hassan Rahman Dec 06 '17 at 04:22
-
-
No. I am talking about Xamarin.Form. It didn't work on Xamarin.Forms. https://github.com/Studyxnet/FilePicker-Plugin-for-Xamarin-and-Windows/issues/41 – Hassan Rahman Dec 06 '17 at 14:41
-
This library is built for Xamarin.Forms, so I’m not sure what you mean by it’s working on Xamarin.Android and not on Forms – Gerald Versluis Dec 06 '17 at 15:27
-
is there some kind of documentation whatsoever? Or steps on how to use this library? – Jurgen Cuschieri Jul 16 '18 at 09:14
-
Not much, but there is this: https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows/ – Gerald Versluis Jul 16 '18 at 09:21