Skip to main content

Simple CLI tool to convert images in a directory to a PDF

Project description

makePDF or img-to-pdf

PyPI version

This is a simple script to convert all images or pdfs in a directory to a single pdf file.

Usage

makePDF [operation] [flags]

Operations

  • img: Convert all images in a directory to a single PDF.
  • pdf: Convert all PDFs in a directory to a single PDF.
  • help: Display help information.

Flags

  • -name: The name of the output file.
  • -in or --input: The input directory.
  • -out or --output: The output directory.

Example

Merge images from the directory input_images into a single PDF named output.pdf in the directory example/output_pdf:

makePDF img -in input_images -out example/output_pdf -name output.pdf

Merge all pdf in the current directory into a single PDF in the current directory:

makePDF.py pdf

Installation

pip install img-to-pdf

License

MIT

Motivation

I created this script in an afternoon because I was not having a fun time converting images to PDFs for class. Automator has a good solution for Mac users, but I was more comfortable in the terminal.

Room for Improvement

  • Add support for other file types.
  • Further Optimization

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

img-to-pdf-1.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

img_to_pdf-1.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file img-to-pdf-1.0.2.tar.gz.

File metadata

  • Download URL: img-to-pdf-1.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.7

File hashes

Hashes for img-to-pdf-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fd40089778a70bbb706e6fe2f351d8ba59c2a5d5a5820713be954a3ad7dcac1b
MD5 54ee9b7301fb5048b4f4ce62616e6392
BLAKE2b-256 c97aff6fc65383358c4364b4f41d515efb082072ab1a5e11f8be062582bcd115

See more details on using hashes here.

File details

Details for the file img_to_pdf-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: img_to_pdf-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.7

File hashes

Hashes for img_to_pdf-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe140ad06a0072898ea3a3dfb4f02dad82e0eec93373870627ca73a4b9f2eb6
MD5 c69aa161cc9820b5c4553713db0bea41
BLAKE2b-256 e89e03cc4a94f8b5b36dec4f8b97d13657f7eeb86f69fd854ad5e3372e461638

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