pdf-llm-tools 
pdf-llm-tools is a family of AI PDF utilities:
pdfllm-titlerrenames a PDF with metadata parsed from the filename and contents. In particular it renames it asYEAR-AUTHOR-TITLE.pdf.- (todo)
pdfllm-tocceradds a bookmark structure parsed from the detected contents table of the PDF.
We currently use poppler/pdftotext for
layout-preserving text extraction and PyMuPDF to update outlines. OpenAI's
gpt-4o-mini is hardcoded as the LLM backend. The program requires an OpenAI
API key via option, envvar, or manual input.
Installation
pip install pdf-llm-tools
Usage
These utilities require all PDFs to have a correct OCR layer. Run something like OCRmyPDF if needed.
titler
pdfllm titler a.pdf b.pdf c.pdf
pdfllm titler --last-page 8 d.pdf
See --help for full details.
Development
This project is made with Hatch.
- Build:
hatch build - Test:
hatch run test:test_all [--openai-api-key KEY]- The test system has the same API key handling as the main progam. The key
must be given either as an option in the
hatch runinvocation (which takes precedence) or as the envvarOPENAI_API_KEY.
- The test system has the same API key handling as the main progam. The key
must be given either as an option in the
Metadata
Release files for pdf-llm-tools 0.0.4
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 |
|---|---|---|---|---|
| pdf_llm_tools-0.0.4.tar.gz | 294.6 kB | Without provenance | Details for pdf_llm_tools-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_llm_tools-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for pdf_llm_tools-0.0.4-py3-none-any.whl |
Total release size: 302.4 kB
Release files / pdf_llm_tools-0.0.4.tar.gz
| Download URL | pdf_llm_tools-0.0.4.tar.gz |
|---|---|
| Size | 294.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea04394f65ef33976f601b44903b12229b1df90324aeef9f4623afd644f51e87
|
|
BLAKE2b-256 checksum How to use checksums |
b50b3db627874c4979144a716584ffeffb89f126813a913c48a7e753a5f2d5ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / pdf_llm_tools-0.0.4-py3-none-any.whl
| Download URL | pdf_llm_tools-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cc6e7d2c3c1fb9efbd2b881dc32cdf91096053c888eb87c2248f818247ee386
|
|
BLAKE2b-256 checksum How to use checksums |
b13d3e83adda0c93ff9234cd14a7b5e5952acab06414c2cf02907d0d1481b730
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Security for pdf-llm-tools 0.0.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.