# Streamlit - How to render PDF file (Blocked by Chrome)

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstreamlit-how-to-render-pdf-file-blocked-by-chrome%2F74684%3E%5C
**Category:** Spaces\
**Created:** [February 25, 2024, 10:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstreamlit-how-to-render-pdf-file-blocked-by-chrome%2F74684 "2024-02-25T10:27:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akarshrajsingh7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/akarshrajsingh7/32/21793_2.png) [@akarshrajsingh7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fakarshrajsingh7)%5C
**Post date:** [February 25, 2024, 10:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstreamlit-how-to-render-pdf-file-blocked-by-chrome%2F74684%2F1 "2024-02-25T10:27:13Z")

</div>

I’m struggling to render PDF file using Streamlit, in Spaces. I also tried a solution using iframe as suggested on [Rendering PDF on UI - 🎈 Using Streamlit - Streamlit](https://discuss.streamlit.io/t/rendering-pdf-on-ui/13505)

But somehow, the iframe is being blocked by Chrome (I’d say most used browser by users). Below is the code I’m using.

```auto
original_display = f'<iframe src="data:application/pdf;base64,{original_pdf}" width = "100%" height = 600 type="application/pdf" download="original.pdf"></iframe>'

st.markdown(original_display, unsafe_allow_html=True)

```

Also, the link to the space having this issue - [Fastify Reader - a Hugging Face Space by akarshrajsingh7](https://huggingface.co/spaces/akarshrajsingh7/Fastify-Reader)

Render issue Screenshot -

 ![Screenshot 2024-02-25 at 11.33.27 AM](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/f/2f6e156acf59b04d7ee8d06d0a0b3498044c1a9d.jpeg)

Any help would be really appreciated! Thanks 🙂
