Amazing-Python-Scripts

Форк
0

README.md

Img to PDF Converter

i2p

This is a simple Python program that can convert a collection of image files into a single PDF file.

Requirements

  • Python
  • img2pdf library

Installation

  • Install the img2pdf library using pip. Open a terminal or command prompt and enter the following command:
  • pip install img2pdf

    Usage

    1. Put all the image files you want to convert into a single folder.
    2. Open a terminal or command prompt and navigate to the folder where the Python script is saved.
    3. Run the following command to convert the image files to a PDF:
    python img2pdf.py

    The PDF file will be saved as Output.pdf in the same folder as the script.

    Note

    • The allowed file types for image files are .jpg, .jpeg, .png, and .gif.
    • The image file names should be in alphabetical order or numerically ascending order to ensure that they are arranged in the correct order in the output PDF.

    Использование cookies

    Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

    Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

    Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.