Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nishidayuya/img_to_pdf
A tool to create PDF from raster image.
https://github.com/nishidayuya/img_to_pdf
jpg2pdf pdf png2pdf raster2pdf
Last synced: 30 days ago
JSON representation
A tool to create PDF from raster image.
- Host: GitHub
- URL: https://github.com/nishidayuya/img_to_pdf
- Owner: nishidayuya
- License: mit
- Created: 2020-03-08T09:41:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T12:00:32.000Z (almost 2 years ago)
- Last Synced: 2024-11-18T01:17:36.197Z (about 2 months ago)
- Topics: jpg2pdf, pdf, png2pdf, raster2pdf
- Language: Ruby
- Homepage: https://github.com/nishidayuya/img_to_pdf
- Size: 308 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# img_to_pdf
A tool to create PDF from raster image.
[![License X11](https://img.shields.io/badge/license-X11-brightgreen.svg)](https://raw.githubusercontent.com/nishidayuya/img_to_pdf/master/LICENSE.txt)
[![Gem Version](https://badge.fury.io/rb/img_to_pdf.svg)](https://rubygems.org/gems/img_to_pdf)
[![ubuntu](https://img.shields.io/github/workflow/status/nishidayuya/img_to_pdf/ubuntu/master)](https://github.com/nishidayuya/img_to_pdf/actions?query=workflow%3Aubuntu)
[![Maintainability](https://img.shields.io/codeclimate/maintainability/nishidayuya/img_to_pdf)](https://codeclimate.com/github/nishidayuya/img_to_pdf/maintainability)
[![Test Coverage](https://img.shields.io/codeclimate/coverage/nishidayuya/img_to_pdf)](https://codeclimate.com/github/nishidayuya/img_to_pdf/test_coverage)## Requirements
* Ruby
* ImageMagick## Installation
```sh
$ gem install img_to_pdf
```## Usage
Create PDF from PNG:
```sh
$ img_to_pdf input.png output.pdf
```Same as:
```sh
$ 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 .