# How To View a pdf in WebView

**URL:** <https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328>\
**Category:** How-to Discussions\
**Created:** [April 13, 2016, 4:38pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328 "2016-04-13T16:38:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico.ronconi](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nico.ronconi](https://forums.fusetools.com/u/nico.ronconi)\
**Post date:** [April 13, 2016, 4:38pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/1 "2016-04-13T16:38:59Z")

</div>

Hi guys,

is it possible to view a pdf (stored in a server) in a WebView?

like this for example:

```auto
<Panel>
    <NativeViewHost>
          <WebView Url="http://www.domain.com/pdf/example.pdf"/&gt;
    </NativeViewHost>
</Panel>

```

---

<div class="post-metadata">

**Author:** ![nico.ronconi](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nico.ronconi](https://forums.fusetools.com/u/nico.ronconi)\
**Post date:** [April 18, 2016, 4:13pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/2 "2016-04-18T16:13:32Z")

</div>

Hi guys. I need a solution. Anyone can help? Thanks

---

<div class="post-metadata">

**Author:** ![skezo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/skezo/32/34_2.png) [@skezo](https://forums.fusetools.com/u/skezo)\
**Post date:** [April 20, 2016, 2:42am UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/3 "2016-04-20T02:42:47Z")

</div>

If you are accessing it online and google services are available to your audience you can use Google’s PDF viewer. Something like the below will render the pdf:

```auto
<Panel>
    <NativeViewHost>
          <WebView Url="https://docs.google.com/gview?embedded=true&url=http://www.domain.com/pdf/example.pdf"/>
    </NativeViewHost>
</Panel>

```

If you are trying to view a local PDF it is bit more tricky, you can use `LaunchUri` and inform the user they need to have a PDF viewer on their device.

---

<div class="post-metadata">

**Author:** ![nico.ronconi](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nico.ronconi](https://forums.fusetools.com/u/nico.ronconi)\
**Post date:** [April 20, 2016, 12:25pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/4 "2016-04-20T12:25:59Z")

</div>

Hi skezo.

The google pdf viewer works. But like that you have the possibility to save the pdf, and i dont want that…

Any solutions?

Why the webview cant display a pdf?

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 20, 2016, 12:38pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/5 "2016-04-20T12:38:29Z")

</div>

> Why the webview cant display a pdf?

Because, as far as I know, the webviews provided by Apple and Google for iOS and Android don’t have PDF-support. Fuse simply provides an abstraction for using the resources made available by the underlying platform.

If you check stackoverflow and other sites it seems like this is a quite common complaint when it comes to WebViews. There are some suggested workarounds (from using docs as mentioned above, to using PDF-plugins written entirely in HTML & JS). My best advice is to check around and see if any of those will let you do what you want.

---

<div class="post-metadata">

**Author:** ![nico.ronconi](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nico.ronconi](https://forums.fusetools.com/u/nico.ronconi)\
**Post date:** [April 20, 2016, 12:43pm UTC](https://forums.fusetools.com/t/how-to-view-a-pdf-in-webview/5328/6 "2016-04-20T12:43:35Z")

</div>

I checked around and tons of people have the same problem :\
