A commandline tool to enhance PDFs from Internet Archive.
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
File details
Details for the file betteria-0.1.1-py3-none-any.whl.
File metadata
- Download URL: betteria-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ab9b1a331bde92c9204ad8d4da2e0689a95d33e28e77f9d2988d82615579344
|
|
| MD5 |
50cab0acb973d7f1c950ad7c640825fb
|
|
| BLAKE2b-256 |
53cba3028ac906f3c82fc1b40380768847ad5d1bd830a04c697e844e9a0679de
|