Skip to content

rillki/img2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2pdf

Image to PDF conversion utility written in D programming language. Download the precompiled binary or build it yourself down below.

Usage

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

Building and Installing

Required

Note for Windows 10 users

When downloading DMD, choose exe. It is the official D installer that will install both DMD and DUB to your system.

Dependencies (managed by DUB automatically)

Compiling

  1. Clone the repository to your machine:
git clone https://github.com/rillki/img2pdf.git
  1. Open your terminal or command line and go to img2pdf folder:
cd img2pdf
  1. 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.

LICENSE

All code is licensed under MIT license.