module imghelper.img_export

Short summary

module pyquickhelper.imghelper.img_export

Tools to convert images.

source on GitHub

Functions

function

truncated documentation

images2pdf

Merges multiples images into one single pdf. Relies on :epkg:`img2pdf`. If an image name contains '*', the function …

Documentation

Tools to convert images.

source on GitHub

pyquickhelper.imghelper.img_export.images2pdf(images, output, fLOG=None)[source][source]

Merges multiples images into one single pdf. Relies on :epkg:`img2pdf`. If an image name contains '*', the function assumes it is a pattern and uses glob.

Parameters
  • images – images to merge, it can be a comma separated values

  • output – output filename or stream

  • fLOG – logging function

Merge images into PDF

Merges one or several images into a single PDF document.

<<<

python -m pyquickhelper images2pdf --help

>>>

usage: images2pdf [-h] [-i IMAGES] [-o OUTPUT]

Merges multiples images into one single pdf. Relies on *img2pdf*. If an image
name contains `'*'`, the function assumes it is a pattern and uses **py.glob*.

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGES, --images IMAGES
                        images to merge, it can be a comma separated values
                        (default: None)
  -o OUTPUT, --output OUTPUT
                        output filename or stream (default: None)

source on GitHub