streamlit-pdf-viewer
Streamlit component for PDF visualisation and manipulation
Decision gist · record as of 2026-08-14
Yes, if you need to display PDFs in a Streamlit app and can tolerate active-development limitations. Install friction is low and the component is actively maintained. However, verify the license status in the repository, test with your target Streamlit version (avoid 1.41–1.58), and be aware that complex PDFs may render slowly due to Streamlit's reload behavior. Not recommended for production use cases requiring guaranteed stability or fast troubleshooting response.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Streamlit versions 1.41–1.58 have a known regression affecting custom-component iframe scroll handling; use Streamlit ≥1.59.0 or ≤1.40.2 to avoid this issue.
- Low install friction with a single runtime dependency on streamlit.
- Active maintenance with recent releases; however, the project is explicitly described as a side project where troubleshooting may take time, and the component is still in development with known bugs and limitations.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the repository before adopting in proprietary or restricted contexts.
last release 2026-07-20 (25 days) · last repo commit 2026-07-20 · 196 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 205,320 downloads/mo, #9,589 on PyPI
Alternatives
Verify before relying
pip install streamlit-pdf-viewer
import streamlit as st
from streamlit_pdf_viewer import pdf_viewer
pdf_viewer("path/to/document.pdf", width=700)- Whether the package works reliably with PDF documents larger than a few megabytes or with complex layouts.
- Performance characteristics when rendering PDFs with many annotations or in Streamlit apps that reload frequently.
- Whether the annotation callback feature is production-ready or still experimental.
What it is and what it does
streamlit-pdf-viewer is a Streamlit custom component that embeds PDF rendering directly into web applications using the pdf.js library. It allows you to display PDF files with interactive controls—zoom, page navigation, and scrolling—and overlay annotations on top of the document. The component supports rendering text on PDFs for copy-paste functionality, custom callbacks when annotations are clicked, and configurable layout options like alignment and page separators.
The package is lightweight, requiring only streamlit as a runtime dependency, and installs with low friction. However, it is maintained as a side project and explicitly remains in active development; the documentation notes known limitations (Firefox and Chrome only, potential slowness with complex PDFs due to Streamlit's reload behavior) and cautions that troubleshooting may be slow. A specific Streamlit version range (1.41–1.58) has a regression that breaks scroll position after dialogs close; the maintainer recommends Streamlit ≥1.59.0.
Use it for
- Embed PDF documents in Streamlit dashboards or data applications without requiring users to download files.
- Build document review or annotation tools where users can mark up PDFs and trigger callbacks on interaction.
- Display multi-page reports or technical documentation with zoom and navigation controls within a Streamlit UI.
- Create document processing pipelines that visualize PDFs alongside extracted data or analysis results.
- Render text-based PDFs with copy-paste support for data extraction workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to display PDFs in a Streamlit app and can tolerate active-development limitations.
Install friction is low and the component is actively maintained. However, verify the license status in the repository, test with your target Streamlit version (avoid 1.41–1.58), and be aware that complex PDFs may render slowly due to Streamlit's reload behavior. Not recommended for production use cases requiring guaranteed stability or fast troubleshooting response.
Install
streamlit-pdf-viewer on PyPI
Before you install
Low install friction with a single runtime dependency on streamlit. Active maintenance with recent releases; however, the project is explicitly described as a side project where troubleshooting may take time, and the component is still in development with known bugs and limitations.
Streamlit versions 1.41–1.58 have a known regression affecting custom-component iframe scroll handling; use Streamlit ≥1.59.0 or ≤1.40.2 to avoid this issue.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the repository before adopting in proprietary or restricted contexts.
Quickstart
pip install streamlit-pdf-viewer
import streamlit as st
from streamlit_pdf_viewer import pdf_viewer
pdf_viewer("path/to/document.pdf", width=700)
Verify before relying
- Whether the package works reliably with PDF documents larger than a few megabytes or with complex layouts.
- Performance characteristics when rendering PDFs with many annotations or in Streamlit apps that reload frequently.
- Whether the annotation callback feature is production-ready or still experimental.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagestreamlit |
| Maintenance | Actively maintained 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 205,320 / month, #9,589 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: streamlit_pdf_viewer-0.0.30-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pdf annotation overlay”
- streamlit-pdf-viewerStreamlit component that renders PDF documents in web applications…
- sphinx-commentsIntegrates third-party commenting and annotation services into…
- geosGEOS is a web server for creating and viewing tiled map overlays in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also streamlit-card · streamlit-pdf · st-annotated-text · gradio-pdf · streamlit-image-coordinates · streamlit-option-menu · streamlit-echarts · streamlit-folium · streamlit-js-eval · streamlit-agraph