# PDF viewer doesn't display the PDF file

**URL:** <https://community.weweb.io/t/pdf-viewer-doesnt-display-the-pdf-file/17497>\
**Category:** Ask us anything\
**Created:** [March 28, 2025, 4:40pm UTC](https://community.weweb.io/t/pdf-viewer-doesnt-display-the-pdf-file/17497 "2025-03-28T16:40:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![thijs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thijs/32/13651_2.png) [@thijs](https://community.weweb.io/u/thijs)\
**Post date:** [April 4, 2025, 9:30pm UTC](https://community.weweb.io/t/pdf-viewer-doesnt-display-the-pdf-file/17497/5 "2025-04-04T21:30:50Z")

</div>

Hi @flycode ,

You can resolve it by providing the PDF viewer with the data in base64 (instead of an url), as explained here: [Show a base64 PDF from API in preview](https://community.weweb.io/t/show-a-base64-pdf-from-api-in-preview/6607)

---

_[View the full topic](https://community.weweb.io/t/pdf-viewer-doesnt-display-the-pdf-file/17497)._
