Skip to content

Cbannon35/makePDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages