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
But somehow, the iframe is being blocked by Chrome (I’d say most used browser by users). Below is the code I’m using.
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
Render issue Screenshot -
Any help would be really appreciated! Thanks