Hi!
I just found a solution for the blockage on chromium-based apps 
def displayPDF(file):
# Opening file from file path
with open(file, "rb") as f:
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
# Embedding PDF in HTML
pdf_display = f"""<embed
class="pdfobject"
type="application/pdf"
title="Embedded PDF"
src="data:application/pdf;base64,{base64_pdf}"
style="overflow: auto; width: 100%; height: 100%;">"""
# Displaying File
st.markdown(pdf_display, unsafe_allow_html=True)
It makes the trick I think:
3 Likes
Hi, recently I’ve started working on a component for visualising PDF documents in streamlit.
You can find it here: GitHub - lfoppiano/streamlit-pdf-viewer: Streamlit PDF viewer.
We are looking for more feedback and testers that could help us.
2 Likes
dasfacc
25
Sorry this certainly doesn’t work for me (google chrome, edge)
king007
26
abed
27
Thanks.
Do you use it from within Streamlit?
I don’t see an API.

i install and package it in docker. Here is the web app: https://chatpdf.website
1 Like
while this does not return any error, the pdf is simply not displayed - just blank: