Skip to content

This repository contains a Python script that generates a PDF file from a set of images. The script resizes the images, adds a black border, and a random number, then places them into a PDF.

License

Notifications You must be signed in to change notification settings

toniles/PDF-Image-Deck-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PDF-Image-Deck-Generator

Description

This is a Python script that takes a set of images from a specific folder and generates a PDF file with them. Each image is resized to a specific size, given a black border and a random number, and placed onto a PDF page.

Dependencies

  • Python 3.x
  • PIL (Pillow)
  • ReportLab

Dependency Installation

Run the following commands to install the dependencies:

```bash pip install Pillow pip install reportlab ```

Usage

  1. Clone this repository.
  2. Open the terminal and navigate to the project folder.
  3. Run python main.py.
  4. Follow the on-screen instructions to specify the folder with images.

Main Functions

  • load_images_from_folder(folder_path): Loads all images from a folder into a list.
  • process_image(image_path, cell_size): Processes an image by resizing it and adding a black border and a random number.

License

This is free and unencumbered software released into the public domain.

For more information, please refer to http://unlicense.org/

About

This repository contains a Python script that generates a PDF file from a set of images. The script resizes the images, adds a black border, and a random number, then places them into a PDF.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages