Skip to main content

This is command line utility to convert images in a directory to PDF file.

Project description

Img2pdf GitHub license GitHub stars

This is command line utility to convert images in a directory to PDF file.

This is very simple CLI to convert images in a directory to a PDF file. This use Pillow( PIL ), to achieve this.

Using pip Version

Type the below command to install img2pdf.

pip install imgtopdfeasy

Typing img2pdf in your terminal would give the options available and the Parameters required like below.

usage: img2pdf [-h] -i INPUT -o OUTPUT -ext EXTENSION

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input file folder full path. Realti
  -o OUTPUT, --output OUTPUT
                        Output file name,No pdf required
  -ext EXTENSION, --extension EXTENSION
                        File extension of image to add.

Its that simple. Typing

img2pdf -i <Path-to-folder> -o <Path-to-output-file> -ext <extension-of-image-to-add>

would simply create you required file.

Note: Path to output file doesn't require .pdf to be added at last.

Using Development Version

To use this go to the directory where you have images. Then type the commands below.

git clone https://github.com/naveen521kk/img2pdf.git

This create a folder called img2pdf. Then go into the folder by

cd img2pdf

After that typing

poetry install

would install necessary Requirements for it to run. The above command requires python-poetry installed.

After that typing

python imgtopdfeasy/img2pdf.py -h

in your terminal would run the program and show the necessary arguments required like below.

usage: img2pdf.py [-h] -i INPUT -o OUTPUT -ext EXTENSION

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input file folder full path. Realti
  -o OUTPUT, --output OUTPUT
                        Output file name,No pdf required
  -ext EXTENSION, --extension EXTENSION
                        File extension of image to add.

Each of it are self explanatory.

Crafted with 💓 by Naveen.

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

imgtopdfeasy-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

imgtopdfeasy-0.2.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file imgtopdfeasy-0.2.1.tar.gz.

File metadata

  • Download URL: imgtopdfeasy-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.0 Windows/7

File hashes

Hashes for imgtopdfeasy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4058f33081a9ddb90f5823543f15bb4df20ecda951086185634fd2a84bfa219e
MD5 86353a974795dc562c042afce6971e05
BLAKE2b-256 d80e36afe67d105beb619a3794d7d16f2461fce4b0425284bb76f7fc6c314e03

See more details on using hashes here.

File details

Details for the file imgtopdfeasy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: imgtopdfeasy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.0 Windows/7

File hashes

Hashes for imgtopdfeasy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c5fc2b0159d8c6695ba98995557a0e88e6640ce80735d234bdbd1644c5cad66
MD5 5c90812b6cd490d8004d0b9466c38ffd
BLAKE2b-256 58bdaac89204d1ce365d40a75095c1db498fc76dd6e5a5b21d8e7c69e0e93420

See more details on using hashes here.

Supported by

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