Project

img_to_pdf

0.0
No release in over 3 years
A tool to create PDF from raster image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

img_to_pdf

A tool to create PDF from raster image.

License X11 Gem Version ubuntu Maintainability Test Coverage

Requirements

  • Ruby
  • ImageMagick

Installation

$ gem install img_to_pdf

Usage

Create PDF from PNG:

$ img_to_pdf input.png output.pdf

Same as:

$ img_to_pdf \
    --paper-size=a4-landscape \
    --horizontal-pages=1 \
    --vertical-pages=1 \
    input.png output.pdf

Create 3x4 pages B5 portrait PDF from JPG:

$ img_to_pdf \
    --paper-size=b5-portrait \
    --horizontal-pages=3 \
    --vertical-pages=4 \
    input.jpg output.pdf

Show help message:

$ img_to_pdf --help

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nishidayuya/img_to_pdf .