# PDF preview for mobile devices

**URL:** <https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416>\
**Category:** How do I?\
**Tags:** design\
**Created:** [May 2, 2024, 9:39pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416 "2024-05-02T21:39:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antiokh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/antiokh/32/2794_2.png) [@Antiokh](https://community.weweb.io/u/Antiokh)\
**Post date:** [May 2, 2024, 9:39pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/1 "2024-05-02T21:39:08Z")

</div>

Hi there!

There is a PDF preview element, which stops working on mobile even in desktop browser in dev mode preview for mobile. Is there any way to fix it and disable this behavior?

Or maybe some other solution for pdf?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [May 2, 2024, 9:42pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/2 "2024-05-02T21:42:01Z")

</div>

If you’re facing a bug, the best course of action is to open a ticket. If the time is pressing you, you might as well use an external library via an embed or the npm plugin.

---

<div class="post-metadata">

**Author:** ![Antiokh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/antiokh/32/2794_2.png) [@Antiokh](https://community.weweb.io/u/Antiokh)\
**Post date:** [May 3, 2024, 12:47pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/3 "2024-05-03T12:47:35Z")

</div>

Thank you!

There was no info about this component in [https://docs.weweb.io/](https://docs.weweb.io/), so I wanted to ask first if it is a bug or feature. I’ll create a ticket and for now, make a download option instead of preview for mobile.

---

<div class="post-metadata">

**Author:** ![Apptrix](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/apptrix/32/14701_2.png) [@Apptrix](https://community.weweb.io/u/Apptrix)\
**Post date:** [May 3, 2024, 2:28pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/4 "2024-05-03T14:28:08Z")

</div>

use an iframe and in the path input “[https://docs.google.com/gview?url="+"your](https://docs.google.com/gview?url=%22+%22your) document path”+“&embedded=true”

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [May 3, 2024, 2:33pm UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/5 "2024-05-03T14:33:27Z")

</div>

Agreed, found using an iframe much more flexible to display pdf’s.

I’ve also played around with Adobe’s free embed API that provides a bunch of functionality:  
[https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/](https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/)

---

<div class="post-metadata">

**Author:** ![Antiokh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/antiokh/32/2794_2.png) [@Antiokh](https://community.weweb.io/u/Antiokh)\
**Post date:** [May 6, 2024, 11:46am UTC](https://community.weweb.io/t/pdf-preview-for-mobile-devices/8416/6 "2024-05-06T11:46:55Z")

</div>

thank you guys, it can solve the problem now, but if we have a “pdf viewer”, it should work properly, imho
