How To Install Img2pdf On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Img2pdf On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

img2pdf

Lossless conversion of raster images to PDF

Maintainer: Johannes 'josch' Schauer



Section: utils

Install img2pdf

  • Debian apt-get install img2pdf Click to copy
  • Ubuntu apt-get install img2pdf Click to copy
  • Arch Linux pacman -S img2pdf Click to copy
  • Kali Linux apt-get install img2pdf Click to copy
  • Fedora dnf install img2pdf Click to copy
  • Raspbian apt-get install img2pdf Click to copy

img2pdf

Lossless conversion of raster images to PDF

This program will take a list of raster images and produce a PDF file with the images embedded in it. JPEG and JPEG2000 images will be included without recompression. Raster images in other formats will be included with zip/flate encoding which usually leads to an increase in the resulting size because formats like png compress better than PDF which just zip/flate compresses the RGB data. As a result, this tool is able to losslessly wrap images into a PDF container with a quality to filesize ratio that is typically better (in case of JPEG and JPEG2000 images) or equal (in case of other formats) than that of existing tools. This package contains the executable.

python3-img2pdf

Lossless conversion of raster images to PDF (library)

This module will take a list of raster images and produce a PDF file with the images embedded in it. JPEG and JPEG2000 images will be included without recompression. Raster images in other formats will be included with zip/flate encoding which usually leads to an increase in the resulting size because formats like png compress better than PDF which just zip/flate compresses the RGB data. As a result, this module is able to losslessly wrap images into a PDF container with a quality to filesize ratio that is typically better (in case of JPEG and JPEG2000 images) or equal (in case of other formats) than that of existing tools. Img2pdf includes its own PDF writer but will use the pdfrw module if available instead. This package contains the Python library.

Installing img2pdf command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of img2pdf 2026 package in your OS.