{"library":"streamlit-pdf","title":"Streamlit PDF Viewer","type":"library","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install streamlit-pdf"],"cli":null},"imports":["from streamlit_pdf import st_pdf"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://streamlit.io","github":"https://github.com/streamlit/streamlit","docs":null,"changelog":null,"pypi":"https://pypi.org/project/streamlit-pdf/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import streamlit as st\nfrom streamlit_pdf import st_pdf\n\nst.title(\"PDF Viewer\")\n\n# Example: load PDF from URL\npdf_url = \"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"\n\n# Or from local file: open('example.pdf', 'rb')\nst_pdf(pdf_url, width=700, height=900)","lang":"python","description":"Minimal example to display a PDF from a URL.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}