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.2.tar.gz
(61.6 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.2-py3-none-any.whl
(4.5 kB
view details)
File details
Details for the file pah-1.3.2.tar.gz.
File metadata
- Download URL: pah-1.3.2.tar.gz
- Upload date:
- Size: 61.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
080ae0afeafb7a785da8f3ec9d8fa133f2be68c74f9b9c66cfe8f9625c7d0eda
|
|
| MD5 |
1e0afbf9c5b1542a97722de520405656
|
|
| BLAKE2b-256 |
1f270736f75697b78d99683f30b03394e7f5c79fec8d33e29c2dd2055ef68de8
|
File details
Details for the file pah-1.3.2-py3-none-any.whl.
File metadata
- Download URL: pah-1.3.2-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 |
de0a257bd1d44a8609d663e39134712971edc9e8b33d96159a49641048ae52dd
|
|
| MD5 |
99d444ee8b86c55fd46311fd2e32dc1f
|
|
| BLAKE2b-256 |
bbd1bc592c1d235f5b6129e05e40eb772cf9abe95950cec903879ac432334f40
|