A Streamlit custom component that renders PDF files directly in the browser. Version 2.0.1 supports embedded viewing, page navigation, and zoom controls. Maintained by the community with monthly releases.
pip install streamlit-pdfVerified import paths — ran on the pinned version, not inferred.
Minimal example to display a PDF from a URL.
Replace `from streamlit_pdf import render_pdf` with `from streamlit_pdf import st_pdf`.
Use `open('file.pdf', 'rb').read()` for local files or a string URL.Apply custom CSS via `st.markdown` or use Streamlit's `st.columns` to control layout.