Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Image PDF Creator

Project Image

Description

The Image PDF Creator is a Python script that allows you to quickly generate a PDF file from a collection of images. It arranges the images in a specified directory into multiple pages, with each page containing three images. The script uses the Python Imaging Library (Pillow) for image processing and ReportLab for PDF generation.

Features

  • Automatically arranges images into a multi-page PDF document
  • Maintains aspect ratio of images while fitting them within page dimensions
  • Customizable margins and image placement
  • Easy-to-use Python script

Requirements

  • Python 3.x
  • Pillow library (pip install Pillow)
  • ReportLab library (pip install reportlab)

Usage

  1. Place your images in a single directory.
  2. Update the image_directory variable in the script with the path to your image directory.
  3. Run the script using Python: python image_pdf_creator.py.
  4. The script will generate a PDF file with the arranged images.

Examples

Here are a few examples of how the images will be arranged in the generated PDF:

PDF Example 1 PDF Example 2

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

The Image PDF Creator is a Python script that simplifies the process of generating PDF documents from images. It intelligently arranges multiple images into a formatted PDF file, ensuring a perfect fit on each page while maintaining aspect ratios. Save time and effort in creating photo albums, portfolios, or presentation materials with this tool.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages