image2pdf

Crates.ioimage2pdf
lib.rsimage2pdf
version0.1.0
sourcesrc
created_at2022-05-12 21:30:29.48429
updated_at2022-05-12 21:30:29.48429
descriptionA CLI convert multiple images into 1 pdf file
homepagehttps://github.com/anhtumai/image2pdf
repositoryhttps://github.com/anhtumai/image2pdf
max_upload_size
id585492
size40,599
Anh Tu Mai (anhtumai)

documentation

README

Image2pdf

Inspired from Img2pdf project.

Features:

  • Support file formats: BMP, PNG, JPG
  • Support color type: L8, La8, Rgb8, Rgba8, Bgr8, Bgra8
  • For image with alpha channel, automatically apply white background

Usage

1. With custom pagesize

$> image2pdf assets/* --output output.pdf --pagesize 150mmx150mm

Output: Pdf file

2. Without pagesize option

$> image2pdf assets/* --output output.pdf

Output: Pdf file

3. With pagesize A4 option

$> image2pdf assets/* --output output.pdf --pagesize A4

Output: Pdf file

4. With pagesize A4 landscape option

$> image2pdf assets/* --output output.pdf --pagesize A4^T

Output: Pdf file

Commit count: 14

cargo fmt