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
close icon

Loading PDF using binding to InputFileStream not working on Android

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

2 Replies

SE Simon Edwards April 26, 2017 01:19 PM UTC

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


SS Sathish Sivakumar Syncfusion Team April 28, 2017 12:34 PM UTC

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  


Loader.
Live Chat Icon For mobile
Up arrow icon