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.
Unfortunately, activation email could not send to your email. Please try again.

Loading PDF using binding to InputFileStream not working on Android

Thread ID:

Created:

Updated:

Platform:

Replies:

130172 Apr 26,2017 08:31 AM Apr 28,2017 08:34 AM Xamarin.Forms 2
loading
Tags: PdfViewer
Simon Edwards
Asked On April 26, 2017 08:31 AM

We are using MVVM pattern in XF app, and attempting to bind a Stream property in the ViewModel to the Bindable InputFileStream property on the SfPdfViewer control.

This works great on iOS, but does not seem to work on Android - the PDF document is not shown.

Does it only work if LoadDocument() is called?

(files attached for reference only, this is not a working (failing) example).


Attachment: Files_a0840cb4.zip

Simon Edwards
Replied On April 26, 2017 09:19 AM

I can confirm that wrapping the SfPdfViewer control in a custom xaml view, implementing a Bindable Stream property, and calling LoadDocument() on underlying SfPdfViewer in the PropertyChanged event does work a treat.

Looks like there is a bug in SfPdfViewer in which it doesn't respond to PropertyChange events on the InputFileStream property.

(files attached for ref only - not a working example)


Attachment: MyWorkAround_378cd301.zip

Sathish Sivakumar [Syncfusion]
Replied On April 28, 2017 08:34 AM

Hi Simon,

Thank you for using Syncfusion Products.

 
We have created a new separate incident under your account for your query. So we request you to kindly login to your Syncfusion account from the below link to know more details about the incident:

https://www.syncfusion.com/account/login

Please let us know if you need further assistance.

Regards,
Sathish  


CONFIRMATION

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.

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.

;