Image to PDF conversion utility written in D programming language. Download the precompiled binary or build it yourself down below.
img2pdf version v1.8 -- Image to PDF converter.
-v --version command utility version
-t --printType print type <stretch, fill, fit> (default: stretch)
-a --ascending sort asceding
-l --landscape landscape PDF page orientation
-p --path path to images directory
-i --images specify image names seperated by ','
-s --size specify page size <A1, ..., A7> (default: A4)
-o --output output PDF file name
-h --help This help information.
EXAMPLE: img2pdf --path=../temp --images=img1.png,img2.jpg --printType=fit --size=A4 --output=myImages.pdf
- D compiler (DMD is recommended)
- DUB package manager
When downloading DMD, choose exe
. It is the official D installer
that will install both DMD
and DUB
to your system.
- Clone the repository to your machine:
git clone https://github.com/rillki/img2pdf.git
- Open your terminal or command line and go to
img2pdf
folder:
cd img2pdf
- Build the binary
dub --build=release
Your will find the binary in the bin/
folder. Add it to your PATH
to use it freely.
Here is an article on how to add an executable binary to PATH
on Windows 10.
All code is licensed under MIT license.