PDF Auto Highlighter
Project description
pah
PDF Auto Highlighter
Usage
pip install pah
As a CLI tool
$ pah --help
usage: pah [-h] -o OUTPUT -m MODEL -p PROMPT [--output-highlights OUTPUT_HIGHLIGHTS] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] input_pdf_path
pah: PDF AutoAuto Highlighter
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 (default: output\example_highlighted.pdf)
-m, --model MODEL LLM model to use (See https://litellm.vercel.app/docs/providers)
-p, --prompt PROMPT Prompt to use for highlighting (default: Extract the most important sections of the text for helping the user understand the content
of the PDF document. )
--output-highlights OUTPUT_HIGHLIGHTS
Output JSON file for highlights (default: output\highlights.json)
--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-app
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.0.tar.gz
(61.4 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.0-py3-none-any.whl
(4.1 kB
view details)
File details
Details for the file pah-1.3.0.tar.gz.
File metadata
- Download URL: pah-1.3.0.tar.gz
- Upload date:
- Size: 61.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be7122090cfc7fd579fef37dc6f29e8b495abca06655af01b7699960282fe647
|
|
| MD5 |
9458b9a35976f9b13c51b6ce7d2173d7
|
|
| BLAKE2b-256 |
66a71c7a84e9bfb71dabba7dd2e2397217a6832143d9884f83882e940c110c89
|
File details
Details for the file pah-1.3.0-py3-none-any.whl.
File metadata
- Download URL: pah-1.3.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc7522ba516a057a922205776fc52dad62d92020eee6b4446e84dfa42635852
|
|
| MD5 |
baa46916d6b7ca3c53c8c3a7913aec5c
|
|
| BLAKE2b-256 |
ee654509bac5fb359cf702da7b0c9f71f7dbdb7783fb112fbea7003cbc3e031c
|