look-like-scanned

Installation

Supported Python Versions MIT LICENSE Downloads Count Star Count Open Issues

Install from the Python Package Index (PyPI) by running this command

pip install look-like-scanned

Or to install the latest version from GitHub

# Clone repo from GitHub and install
git clone https://github.com/navchandar/look-like-scanned.git
cd look-like-scanned
pip install poetry
poetry install
pip install .

Verify Installation


# print help message and usage options available and verify the installation
scanner -h
# Scanner version: 1.0.0

Usage

This package uses PIL and pypdfium2 to convert and manipulate image and PDF objects.

This is extended to provide a command-line interface (CLI) for easy usage.

        
# Convert all pdf files in folder to scanned pdf
scanner -i .\tests
scanner -i .\tests -f "pdf"

# Convert all pdf files in folder to scanned without askew
scanner -i .\tests -a no

# Convert specific pdf file in folder to scanned pdf
scanner -i .\tests -f "test.pdf"

# Convert all jpg, jpeg, png, webp files in folder to one pdf file
scanner -i .\tests -f "image"

# Convert all png files in folder to pdf with 100% quality to one pdf file
scanner -i .\tests -f "png" -q 100

# Convert specific jpg file in folder to pdf with 75% quality to one pdf file
scanner -i .\tests -f "JPG_Test.jpg" -q 75

# Convert all PDF files including sub folders
scanner -i .\tests -f "pdf" -r yes

# Convert all Images including sub folders into one PDF
scanner -i .\tests -f "image" -r yes

# Convert all image files in folder in the order of file names
scanner -i .\tests -f "image" -s "name"

# Convert all PDF files including sub folders and save in black & white format
scanner -i .\tests -f "pdf" -r yes -b yes

# Convert all png files including sub folders and make it a little blurry
scanner -i .\tests -f "png" -r yes -b yes -l yes
    

Arguments

These are the command-line arguments accepted:

❗❗ Note: ❗❗

License -

OSI Approved - MIT License

Contact -

For Ideas / Feedback / Issues / Bugs

Support This Project

Paypal Badge BuymeCoffee Badge KO-FI Badge