PDF READER FROM URL

Hello, guys. I'm trying to do a PDF Reader in my app, i've followed this tutorial https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/controls/display-pdf/, but this tutorial is only for Local Files. Is there any way to adapt to see the PDF files from URL? Thx Guys

Answers

  • yousufctecyousufctec USMember ✭✭✭
    edited February 2017

    Did you used the same control and tried passing your URL over there?
    Or, Just like the tutorial you can create a webview rather than custom webview and assign your URL in the source to make it work.

    <WebView x:Name="webBrowser" Source="http://www.sample.com/sample.pdf" />

    or you can assign it from the C# code behind code as well.

    Thanks!

    Yousuf.

  • Thanks bro, this solved. Now I want to Upload PDF File to a server PHP. Do you know how to do this?

  • yousufctecyousufctec USMember ✭✭✭

    Hi @MichelBittencourt,
    Already you have the URL with you for the PDF, then you can save it directly to the server you need.

    Thanks!

    Yousuf.

Sign In or Register to comment.