Giter VIP home page Giter VIP logo

img2pdf's Introduction

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.

img2pdf's People

Contributors

aleclarson avatar kazakhai avatar kirillsaidov avatar rillki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aleclarson

img2pdf's Issues

Add handling damaged image files.

Handle damaged image files so the program does not abort or throw an error. It should skip that file and print a message that it is damaged.

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.