gradio-pdf
Easily display PDFs in Gradio
Decision gist · record as of 2026-08-14
Yes, if you are building a Gradio application that needs to display or accept PDFs. The low install friction, permissive license, and straightforward API make it a practical choice for document-centric UIs. The alpha status and 261 days since last release mean you should test it against your specific Gradio version and PDF use cases before relying on it in production, but there are no known vulnerabilities and the core functionality is stable.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10
- Low friction installation with a single runtime dependency on gradio.
- The package is in alpha status and hasn't been updated in 261 days, so maintenance momentum is limited but the repository remains active and unarchived.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal restrictions.
last release 2025-11-26 (261 days) · last repo commit 2025-11-26 · 44 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 149,755 downloads/mo, #10,988 on PyPI
Alternatives
Verify before relying
pip install gradio_pdf
import gradio as gr
from gradio_pdf import PDF
demo = gr.Interface(
fn=lambda doc: doc,
inputs=PDF(label="Document"),
outputs="text"
)
if __name__ == "__main__":
demo.launch()- Whether the PDF component supports interactive features beyond display (e.g., annotation, form filling, search).
- Performance characteristics when handling large PDF files or batch operations.
- Compatibility with specific gradio versions beyond the stated Python version support.
What it is and what it does
gradio_pdf is a custom component that extends Gradio with a PDF display and input element. It wraps PDF rendering into a Gradio component that can be used in interfaces and blocks, accepting a file path and displaying the PDF in the browser. The component supports standard Gradio features like labels, visibility toggling, and event handlers (change and upload events), making it straightforward to integrate PDF handling into document-processing pipelines.
The package depends only on gradio and is designed as a thin wrapper around PDF display. It exposes a PDF component with configurable height, starting_page, and standard Gradio container options. The component preprocesses input as a string (file path) and can be used both as an input to capture user-uploaded PDFs and as an output to display results from backend processing.
Use it for
- Build a document question-answering interface where users upload a PDF and ask questions about its content.
- Create a form-processing UI that displays a PDF document alongside input fields for data extraction.
- Display generated or processed PDFs as output in a Gradio app without leaving the web interface.
- Prototype invoice or receipt processing workflows with side-by-side PDF and result display.
- Integrate PDF upload and display into scientific or data analysis applications built with Gradio.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Gradio application that needs to display or accept PDFs.
The low install friction, permissive license, and straightforward API make it a practical choice for document-centric UIs. The alpha status and 261 days since last release mean you should test it against your specific Gradio version and PDF use cases before relying on it in production, but there are no known vulnerabilities and the core functionality is stable.
Install
gradio-pdf on PyPI
Before you install
Low friction installation with a single runtime dependency on gradio. The package is in alpha status and hasn't been updated in 261 days, so maintenance momentum is limited but the repository remains active and unarchived.
Requires Python >= 3.10
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal restrictions.
Quickstart
pip install gradio_pdf
import gradio as gr
from gradio_pdf import PDF
demo = gr.Interface(
fn=lambda doc: doc,
inputs=PDF(label="Document"),
outputs="text"
)
if __name__ == "__main__":
demo.launch()
Verify before relying
- Whether the PDF component supports interactive features beyond display (e.g., annotation, form filling, search).
- Performance characteristics when handling large PDF files or batch operations.
- Compatibility with specific gradio versions beyond the stated Python version support.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagegradio |
| Maintenance | Aging 261 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 149,755 / month, #10,988 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Visualization |
Evidence: gradio_pdf-0.0.24-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 viewer gradio component”
- gradio-pdfProvides a PDF display component for Gradio applications, allowing…
- gradio-imagesliderA Gradio component that displays two images side-by-side with an…
- streamlit-pdfAdds a PDF viewer component to Streamlit apps that displays PDF files…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also gradio-imageslider · gradio-rangeslider · streamlit-pdf · gradio · streamlit-pdf-viewer · gradio-client · hf-gradio · sphinx-simplepdf · pdf2image · mkdocs-render-swagger-plugin