Tool to turn scans into PDFs
Go to file
2024-01-13 21:20:09 +01:00
LICENSE Add LICENSE 2022-08-28 20:32:57 +02:00
pdfutil.py pdfutil: Fix TypeError in PyMuPDF font size handling 2024-01-13 21:20:09 +01:00
README.md init 2022-08-28 20:03:07 +02:00
requirements.txt init 2022-08-28 20:03:07 +02:00
scanproc.py Add LICENSE 2022-08-28 20:32:57 +02:00

scanproc

This is a tool to process high-resolution scans with as little user input as possible. It produces decently compressed PDF files with monochrome/color separation and more or less accurate text layers.

Requirements

In addition to the Python modules listed in requirements.txt, scanproc requires jbig2 to be installed in your $PATH.

Usage

scanproc.py [-h] [-l LANGS] [-d DPI] [--debug] output [imgs ...]

Usage is simple. You pass a list of EasyOCR language codes to use with -l (default English only; pass multiple times for more than one language), the image resolution (required for filter kernel scaling and correct page size), followed by the output PDF file and the input image files.