Gradio component to display PDF files and extract text within Gradio apps. Currently at version 0.0.24, with a pre-1.0 release cadence. Requires Python >=3.10.
pip install gradio-pdfVerified import paths — ran on the pinned version, not inferred.
Simple Gradio app with PDF component (placeholder; see official docs for full PDF usage).
Use `from gradio_pdf import PDF` (capital 'PDF').
Place the PDF component inside `gr.Blocks()` as `PDF(...)`, not `PDF().render()`.
Always pass a string path or URL: `PDF(value='/path/to/file.pdf')`.
Run `pip install gradio-pdf`. Note the hyphen in the package name but underscore in imports.
Use `from gradio_pdf import PDF` (uppercase).
Upgrade to latest version: `pip install --upgrade gradio-pdf`. Then use `from gradio_pdf import PDF`.