Search code examples
androidiospdfxamarinaspect-ratio

Showing pdf in Xamarin apps


I'm developing appilcation for iOS and Android using Xamarin. I found some information, but I can't fully understand, how can I show pdf.

Firstly, should I really pay for XFINIUM.PDF Mobile Standard Edition? As I understood, it is special Xamarin pdf viewer, but I can use default smartphone viewer, that will be shown in my app. Is it correct?

Secondly, I have some questions about pdf format. For example I have pdf file with standard aspect ratio. And I want to show it in square pages(for example). Does pdf have mechanism to rebuild content for another aspect ratio? And can I do it with Xamarin?


Solution

  • Before Android L there is no way to display PDF without using a 3rd party library. In iOS you can use the native document viewer using UIDocumentInteractionController. The class is exposed in Xamarin.iOS so you should be good to go on that one.