/img2singlePDF

A very short Python project to convert multiple image files to a single PDF file

Primary LanguagePythonMIT LicenseMIT

img2singlePDF

A very short Python project to convert multiple image files to a single PDF file

πŸŽ₯ Complete Video Tutorial (Click on the image)

How To Convert Multiple Images Into A PDF File Using Python || Python Project

πŸ“¦ Project Directory Structure

This is what the project directory looks like without Git.

πŸ“¦img2singlePDF
 ┣ πŸ“œImageContainingBook.pdf
 ┣ πŸ“œjakub-neskora-A9tqu5iCFCQ-unsplash.jpg
 ┣ πŸ“œraphael-renter-csae9W8JAsw-unsplash.jpg
 ┣ πŸ“œREADME.md
 ┣ πŸ“œsam-moghadam-khamseh-cU5TUyEaZXQ-unsplash.jpg
 ┣ πŸ“œScript.py
 ┣ πŸ“œsherry-christian-8Myh76_3M2U-unsplash.jpg
 β”— πŸ“œsunder-muthukumaran-fd6K_OFlnRA-unsplash.jpg

This is what my project looks like with the git and the necessary things for that.

This is a very long list! Expand it to display everything!
πŸ“¦img2singlePDF
 ┣ πŸ“‚.git
 ┃ ┣ πŸ“‚hooks
 ┃ ┃ ┣ πŸ“œapplypatch-msg.sample
 ┃ ┃ ┣ πŸ“œcommit-msg.sample
 ┃ ┃ ┣ πŸ“œfsmonitor-watchman.sample
 ┃ ┃ ┣ πŸ“œpost-update.sample
 ┃ ┃ ┣ πŸ“œpre-applypatch.sample
 ┃ ┃ ┣ πŸ“œpre-commit.sample
 ┃ ┃ ┣ πŸ“œpre-merge-commit.sample
 ┃ ┃ ┣ πŸ“œpre-push.sample
 ┃ ┃ ┣ πŸ“œpre-rebase.sample
 ┃ ┃ ┣ πŸ“œpre-receive.sample
 ┃ ┃ ┣ πŸ“œprepare-commit-msg.sample
 ┃ ┃ ┣ πŸ“œpush-to-checkout.sample
 ┃ ┃ ┣ πŸ“œsendemail-validate.sample
 ┃ ┃ β”— πŸ“œupdate.sample
 ┃ ┣ πŸ“‚info
 ┃ ┃ β”— πŸ“œexclude
 ┃ ┣ πŸ“‚logs
 ┃ ┃ ┣ πŸ“‚refs
 ┃ ┃ ┃ ┣ πŸ“‚heads
 ┃ ┃ ┃ ┃ β”— πŸ“œmain
 ┃ ┃ ┃ β”— πŸ“‚remotes
 ┃ ┃ ┃ ┃ β”— πŸ“‚origin
 ┃ ┃ ┃ ┃ ┃ ┣ πŸ“œHEAD
 ┃ ┃ ┃ ┃ ┃ β”— πŸ“œmain
 ┃ ┃ β”— πŸ“œHEAD
 ┃ ┣ πŸ“‚objects
 ┃ ┃ ┣ πŸ“‚0c
 ┃ ┃ ┃ β”— πŸ“œc08f36a8237d884055b437abdc7bca89f22df8
 ┃ ┃ ┣ πŸ“‚32
 ┃ ┃ ┃ β”— πŸ“œc5bb537b3090e578dfb85e718e67d020c32c76
 ┃ ┃ ┣ πŸ“‚3d
 ┃ ┃ ┃ β”— πŸ“œded592bc5dd0578a155891368f664102883fca
 ┃ ┃ ┣ πŸ“‚45
 ┃ ┃ ┃ β”— πŸ“œe334d419d3876616469e28dca06f81aca486e7
 ┃ ┃ ┣ πŸ“‚4d
 ┃ ┃ ┃ β”— πŸ“œedc33ae7c102a040058caf2eadd3d477fd3e21
 ┃ ┃ ┣ πŸ“‚54
 ┃ ┃ ┃ ┣ πŸ“œ5f1fddb186d9780980728e966ffe9f54944c8c
 ┃ ┃ ┃ β”— πŸ“œad4bb98b0a79bf810850ef26b93a7b9882a05f
 ┃ ┃ ┣ πŸ“‚59
 ┃ ┃ ┃ β”— πŸ“œ8614d5c7e7add9218dd4553dff4f5f99f87f0c
 ┃ ┃ ┣ πŸ“‚5f
 ┃ ┃ ┃ β”— πŸ“œ356de01c3c64b1021dde225503d639b0de2334
 ┃ ┃ ┣ πŸ“‚74
 ┃ ┃ ┃ β”— πŸ“œc39d53de4ce962e4ead056323d61b1c675ef18
 ┃ ┃ ┣ πŸ“‚7e
 ┃ ┃ ┃ β”— πŸ“œ820efa4e5c2de055c33c6869b49e2785bb4ac3
 ┃ ┃ ┣ πŸ“‚83
 ┃ ┃ ┃ β”— πŸ“œ4982131f2273474913da1365af6e2b5358f41b
 ┃ ┃ ┣ πŸ“‚90
 ┃ ┃ ┃ β”— πŸ“œ04169f7f5de94569449f738637d612511b17d9
 ┃ ┃ ┣ πŸ“‚9a
 ┃ ┃ ┃ β”— πŸ“œd25664f1fe5729c9ea870cceef12c3c58b7231
 ┃ ┃ ┣ πŸ“‚b2
 ┃ ┃ ┃ β”— πŸ“œccb86027fb7c17d7696b75d28a54f26b819957
 ┃ ┃ ┣ πŸ“‚b7
 ┃ ┃ ┃ β”— πŸ“œ52e1abce94c356f4f3868aac7adaf474248d40
 ┃ ┃ ┣ πŸ“‚ba
 ┃ ┃ ┃ β”— πŸ“œ349a61db8a1a1f079de33219556bf6b604b9a9
 ┃ ┃ ┣ πŸ“‚c2
 ┃ ┃ ┃ β”— πŸ“œc13133ebf295adaab5ba256b05087efe533a5d
 ┃ ┃ ┣ πŸ“‚ca
 ┃ ┃ ┃ β”— πŸ“œ94f1cdc6a70faa9b7c5f3e954f96598cd3aed2
 ┃ ┃ ┣ πŸ“‚ce
 ┃ ┃ ┃ β”— πŸ“œ23cc5cca425214374a8b8c84fb5eeecb4e0ba1
 ┃ ┃ ┣ πŸ“‚d3
 ┃ ┃ ┃ β”— πŸ“œ59e6c3987f7d4888bf3207594694d89939da05
 ┃ ┃ ┣ πŸ“‚da
 ┃ ┃ ┃ β”— πŸ“œ1926bd221081d98ac3d63f52fbe451649266a5
 ┃ ┃ ┣ πŸ“‚e4
 ┃ ┃ ┃ β”— πŸ“œ51ae404388c90540cf32c6b80f2a15a4989dcd
 ┃ ┃ ┣ πŸ“‚fc
 ┃ ┃ ┃ β”— πŸ“œa21acf193c6a5a23f28f7faa2e97bff86bdf2d
 ┃ ┃ ┣ πŸ“‚info
 ┃ ┃ β”— πŸ“‚pack
 ┃ ┃ ┃ ┣ πŸ“œpack-906bdaa3745e4c955108eb06c6dbefac77f36ea6.idx
 ┃ ┃ ┃ ┣ πŸ“œpack-906bdaa3745e4c955108eb06c6dbefac77f36ea6.pack
 ┃ ┃ ┃ β”— πŸ“œpack-906bdaa3745e4c955108eb06c6dbefac77f36ea6.rev
 ┃ ┣ πŸ“‚refs
 ┃ ┃ ┣ πŸ“‚heads
 ┃ ┃ ┃ β”— πŸ“œmain
 ┃ ┃ ┣ πŸ“‚remotes
 ┃ ┃ ┃ β”— πŸ“‚origin
 ┃ ┃ ┃ ┃ ┣ πŸ“œHEAD
 ┃ ┃ ┃ ┃ β”— πŸ“œmain
 ┃ ┃ β”— πŸ“‚tags
 ┃ ┣ πŸ“œCOMMIT_EDITMSG
 ┃ ┣ πŸ“œconfig
 ┃ ┣ πŸ“œdescription
 ┃ ┣ πŸ“œFETCH_HEAD
 ┃ ┣ πŸ“œHEAD
 ┃ ┣ πŸ“œindex
 ┃ ┣ πŸ“œORIG_HEAD
 ┃ β”— πŸ“œpacked-refs
 ┣ πŸ“‚img
 ┃ β”— πŸ“œPreview.png
 ┣ πŸ“‚_includes
 ┃ β”— πŸ“œyoutube.yml
 ┣ πŸ“œ.gitignore
 ┣ πŸ“œImageContainingBook.pdf
 ┣ πŸ“œjakub-neskora-A9tqu5iCFCQ-unsplash.jpg
 ┣ πŸ“œLICENSE
 ┣ πŸ“œraphael-renter-csae9W8JAsw-unsplash.jpg
 ┣ πŸ“œREADME.md
 ┣ πŸ“œsam-moghadam-khamseh-cU5TUyEaZXQ-unsplash.jpg
 ┣ πŸ“œScript.py
 ┣ πŸ“œsherry-christian-8Myh76_3M2U-unsplash.jpg
 β”— πŸ“œsunder-muthukumaran-fd6K_OFlnRA-unsplash.jpg

πŸ“š Used library

πŸ’» Run the project

  • Clone the repository git clone https://github.com/FahimFBA/img2singlePDF.git
  • Go to the project directory cd img2singlePDF
  • Install img2pdf library pip install img2pdf
  • Change the file directory in the Script.py file
  • Run the project python Script.py
  • It will generate a pdf file named ImageContainingBook.pdf in the project directory

⭐ Stargazers

Stargazers repo roster for @FahimFBA/img2singlePDF