Skip to main content

A Python project named betteria

Project description

betteria

A commandline tool to enhance PDFs from Internet Archive.

Installation

pip install betteria

Usage

betteria --help
usage: betteria [-h] --input INPUT [--output OUTPUT] [--dpi DPI] [--threshold THRESHOLD] [--use_adaptive USE_ADAPTIVE] [--invert INVERT]

Clean and compress a scanned PDF by whitening pages and saving as CCITT Group 4 TIFFs (via a manual page-by-page approach).

options:
-h, --help            show this help message and exit
--input INPUT         Path to input PDF
--output OUTPUT       Path to output PDF (default: output.pdf)
--dpi DPI             DPI for rasterizing PDF pages
--threshold THRESHOLD
                        Global threshold value
--use_adaptive USE_ADAPTIVE
                        Set True to use adaptive thresholding instead of global
--invert INVERT       Set True if pages are inverted (light text on dark background)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

betteria-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file betteria-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: betteria-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for betteria-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bcc61b4b35abfb705ca438b79b2275526b78dc7e5a41451ea20e1d6d8571b70
MD5 890ee103219e919ab04c16b313f94fec
BLAKE2b-256 951c544a986894a2083502928f6a2cf74620b0e42972c0f91e7f481bdf5fae38

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