Skip to main content

llm-plugin-pdf

PyPI Changelog Tests License

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)

Source distribution for llm-plugin-pdf 0.1
File Size Uploaded
llm_plugin_pdf-0.1.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-plugin-pdf 0.1
File Interpreter ABI Platform
llm_plugin_pdf-0.1-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page