A very short Python project to convert multiple image files to a single PDF file
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
- img2pdf: https://pypi.org/project/img2pdf/
- Clone the repository
git clone https://github.com/FahimFBA/img2singlePDF.git
- Go to the project directory
cd img2singlePDF
- Install
img2pdf
librarypip 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