Skip to main content

PDF Auto Highlighter

Project description

pah

PyPI - pah

PDF Auto Highlighter

Usage

pip install pah

As a CLI tool

$ uv run pah --help
usage: pah [-h] --output OUTPUT --model MODEL [--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
  --output, -o OUTPUT   Output PDF file with highlights
  --model, -m MODEL     LLM model to use (See https://litellm.vercel.app/docs/providers)
  --output-highlights OUTPUT_HIGHLIGHTS
                        Output JSON file for highlights
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Logging level
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()

Project details


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.1.4.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pah-1.1.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pah-1.1.4.tar.gz.

File metadata

  • Download URL: pah-1.1.4.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for pah-1.1.4.tar.gz
Algorithm Hash digest
SHA256 9ce77aa4e1e108802bf5d2cba7f286baaa881f8bf9edb8f00ed763930398bbce
MD5 3c4dbd74525d9a28c46447362e3395bc
BLAKE2b-256 84a314cd49f91a056cb6fb2b063524e6b14c597b4436fb287e8822c7367aae6e

See more details on using hashes here.

File details

Details for the file pah-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: pah-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for pah-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d443cc753f95213d562f2949dbf9977421509f337522f76e03d65efb71a96a49
MD5 cec0cf3ab20efd72ecad177ae1b9bc25
BLAKE2b-256 fb8f7c65b11a29a495689c09e2c4eb0fd900167d771748c5f171ea4d72915055

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page