Coder Social home page Coder Social logo

convert_images_to_pdf's Introduction

Convert images to PDF

Introduction

Many times you have to create a PDF staring from a list of images. The idea is to run an exe file from any folder on the PC that will take in input some images filename and it will create a PDF file. The order of the images in the PDF will be the same in which the images are passed to the exe. By default the output filename will be merge.pdf

Software and Libraries

This project uses Python 3.9.5 and the following libraries:

More informations in requirements.txt. To create it I have used python -m pip freeze > requirements.txt. To install all Python packages written in the requirements.txt file run pip install -r requirements.txt.

Build

To build the .exe file and place it in %USERPROFILE%\AppData\Local\Programs\Python\Python39\Scripts you have to run deploy.cmd

To check the value of the environment variable %USERPROFILE% with Windows PowerShell you have to run $env:USERPROFILE while on the command line you can simply run echo %USERPROFILE%

Running the code

From any folder of your PC you can open a command promt and run convert_images_to_pdf.exe image_1.jpeg image_2.jpeg and in the same folder a merge.pdf file will be created

You can find more information in this blog post

Acknowledgements

Thanks to datatofish.com for the tips about how to convert images to PDF using python

convert_images_to_pdf's People

Contributors

simonerigoni avatar

Stargazers

Akinyiga Obadamilare avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.