We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Loading Docs from string location

Thread ID:





146688 Aug 14,2019 08:17 AM UTC Aug 15,2019 01:21 PM UTC Xamarin.Forms 1
Tags: PdfViewer
Asked On August 14, 2019 08:17 AM UTC


I am having problems loading pdf documents from an external source.
Using the method in the syncfusion documentation doesnt work for me.
So the way my app works:

I have buttons on a page. When you click on one of the buttons the app loads another page with a listview with all the pdfs in a specific folder on the tablet
Then when you select a file in the listview it has to open another page with the pdfviewer on it displaying the pdf
My problem then is that I pass the location of the pdf through from the listview as a string.
How can I use that string to load the document?

Gayathri Ramalingam [Syncfusion]
Replied On August 15, 2019 01:21 PM UTC

Hi Gerrit, 
We have analyzed the feasibility and created a workaround to open the PDF document from the device local storage using SfPdfViewer in Xamarin.Forms. 
For your reference we have also published KB for the same from below link, 
  • The PDF files and the file paths used in the code snippet as well as in the sample are only meant to be examples. Before running the sample or using the code in your own application, please ensure that the PDF files exist in the specified paths. The file name and path can also be changed to suit your needs.
  • The input PDF files can be placed in the local disks of Windows (desktop/mobile) device and the storage directories of Android device manually.
  • But in iOS, manually placed or downloaded files cannot be accessed by an application. For an application, the file must be in the sandbox of the application according to the documentation to access a file. 
Gayathri R 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon