llm-plugin-pdf
LLM plugin for loading text from PDF files (local or URL) using PyMuPDF.
Installation
Install this plugin in the same environment as LLM.
llm install llm-plugin-pdf
This plugin requires the PyMuPDF and requests packages.
Usage
This plugin adds support for the pdf: fragment prefix. You can use it to load the full text content of a PDF from a local file path or a web URL.
# Load from a local file
llm fragment pdf:/path/to/your/document.pdf
# Load from a URL
llm fragment pdf:https://example.com/some-document.pdf
You can pipe the output to LLM commands:
llm fragment pdf:https://arxiv.org/pdf/2310.06825.pdf | llm -s "Summarize this PDF"
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-pdf
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
# Install in editable mode with test dependencies
python -m pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for llm-plugin-pdf 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_plugin_pdf-0.1.tar.gz | 8.6 kB | With provenance | Details for llm_plugin_pdf-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_plugin_pdf-0.1-py3-none-any.whl | Python 3 | none | any | Details for llm_plugin_pdf-0.1-py3-none-any.whl |
Total release size: 16.5 kB
Release files / llm_plugin_pdf-0.1.tar.gz
| Download URL | llm_plugin_pdf-0.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cbfad64173988b4ff80052458710da18fd3010ea6eb63ab2ff4d395bb06019b
|
|
BLAKE2b-256 checksum How to use checksums |
4e2b9e4ab82e60fb13ad522d8583e275fa648a11253b110ebfc59b96b5fa1bc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.
Transparency logRelease files / llm_plugin_pdf-0.1-py3-none-any.whl
| Download URL | llm_plugin_pdf-0.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2766a4b86c1e2638a463f1882d029e8d6cf13fd15bcde1b7ec9ec2a93cdba928
|
|
BLAKE2b-256 checksum How to use checksums |
65c9685a3256f4eb489bf38c69bb6c33ea8cf75555449a94d4c7719d529b0294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.
Transparency logSecurity for llm-plugin-pdf 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for llm_plugin_pdf-0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.