Open pdf inapp Xamarin forms windows 8.1 winrt app

I'm implementing a xamarin forms windows 8.1(WinRT) app. I want to render pdf in app. I have tried custom renderer and mozzila pdf.js which is not working for me. Please suggest me how to do it. Thank you.

1 answer

  • answered 2018-01-09 11:15 rohini prabakar

    Implementing pdf.js will give you a pdf viewer and the pdf will render just fine. Just make sure you retrieve the pdf file in the same folder(Assets) where you stored it.

    Alternatively, you can convert the pdf into a bitmap image and set the source to an Image control. That will work fine as well. Refer - This link contains a sample to print the pdf by converting into a bitmap image. You can modify the code for displaying.