PDF Auto Highlighter
Project description
pah
PDF Auto Highlighter
Usage
pip install pah
As a CLI tool
$ pah highlight --help
usage: pah highlight [-h] -o OUTPUT -m MODEL [-p PROMPT] [--output-page-texts OUTPUT_PAGE_TEXTS] [--output-highlights OUTPUT_HIGHLIGHTS]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
input_pdf_path
positional arguments:
input_pdf_path Input PDF file
options:
-h, --help show this help message and exit
-o, --output OUTPUT Output PDF file with highlights
-m, --model MODEL LLM model to use (See https://litellm.vercel.app/docs/providers)
-p, --prompt PROMPT Prompt to use for highlighting
--output-page-texts OUTPUT_PAGE_TEXTS
Output JSON file for page texts
--output-highlights OUTPUT_HIGHLIGHTS
Output JSON file for highlights
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Logging level (default: INFO)
pah input.pdf --output_pdf_path output.pdf --llm_model gpt-4o
As a Python library
from pah import PAH
pah = PAH(
input_pdf_path="input.pdf",
output_pdf_path="output.pdf",
llm_model="gpt-4o",
output_highlights_path="highlights.json"
)
pah.highlight()
As a GUI tool
pip install pah[gui]
pah gui --help
usage: pah gui [-h]
options:
-h, --help show this help message and exit
pah gui
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pah-1.3.1.tar.gz
(61.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pah-1.3.1-py3-none-any.whl
(4.5 kB
view details)
File details
Details for the file pah-1.3.1.tar.gz.
File metadata
- Download URL: pah-1.3.1.tar.gz
- Upload date:
- Size: 61.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653591ee9901da71ad1688dbb4bdb8ab20334f4c890c6c3b507c426f2d3c4b5d
|
|
| MD5 |
212bff917c7f2ac59d703ba6b99dcea2
|
|
| BLAKE2b-256 |
4d0648f00fdf5caa84aec2614151dd7f99e21ddccd5b196a58be4e0dfd843b6b
|
File details
Details for the file pah-1.3.1-py3-none-any.whl.
File metadata
- Download URL: pah-1.3.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c39c01c74e5eda34a41e486ff6007292e8c22cce24bee7fd2012b15da74e7e5
|
|
| MD5 |
aad909a6d633caa43c3c80509c6586ce
|
|
| BLAKE2b-256 |
98e68c93b57d88128f3c187caef8e0ea957626e7b16488c837f1107a151ab593
|