Skip to main content

IMG2PDF

Shell

This program uses FPDF python module to bring image files together. I created a command line utility to automatically do it with lots of option. The help document explain everything about itself:

This program merges image files in a directory and creates a PDF file. Every
image get put to a page that exact same size as itself.

        Usage:
            img2pdf+ [OPTIONS] [OUTPUT FILE]

        Parameters:
            -h, --help             : Print this help document and exit.
            -d, --dir [DIRECTORY]  : Set directory to work on. Default is
                                     working directory.
            -q, --quiet            : Do not print process details.
            -r, --reverse          : Reverse image order.
            -n, --negative         : Invert colors of images. May be useful to
                                     make black & white documents dark.
            -g, --grayscale        : Make colors shades of gray.
            -f, --force            : Overwrite to existing PDF file.
            -i, --interactive      : Prompt before overwrite.
            -D, --decline          : Do not let overwrite. Ignores --force and
                                     --interactive parameter. This option does
                                     not return any error if file already exists.
            -e, --except           : Do not include images that have no read
                                     permission.
            -s, --selective        : Let selecting which image will be
                                     included.
            -S, --sort-by [METHOD] : Set sorting method. available methods are:
                                     name (default), m_time (modification time),
                                     c_time (change time).
            -p, --page-size [SIZE] : Fixed page size, strech photos to page.
                                     Options are: A4, A3, A5, Letter, Legal,
                                     WITDHxHEIGHT (in pt).
            -L, --landscape        : Rotate images to landscape. (Do not change if
                                     already is.)
            -P, --portrait         : Rotate images to portrait. (Do not change if
                                     already is.)

        Exit Codes:
              0 : Program done it's job successfully.
              1 : An error occurred.
              2 : Parameter fault. Please check your command.
              3 : No valid image file in directory.
              4 : User declined overwrite.
              5 : File exist and overwrite not allowed.
              6 : Directory does not exist.
            126 : File permission denied. Check file permissions.
            130 : Process terminated by user.

Release files for img2pdf-plus 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for img2pdf-plus 1.1.3
File Size Uploaded
img2pdf-plus-1.1.3.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for img2pdf-plus 1.1.3
File Interpreter ABI Platform
img2pdf_plus-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / img2pdf-plus-1.1.3.tar.gz

Download URL img2pdf-plus-1.1.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aed13cd834615008d4b7756fdf7ce207d9ca9f7e10e48c8775e7dc4589d424d8
BLAKE2b-256 checksum
How to use checksums
1cdc706cbd60f3fd049571dacd63ee7dc2b2691832e393f8bd7a1e412042feb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / img2pdf_plus-1.1.3-py3-none-any.whl

Download URL img2pdf_plus-1.1.3-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
885810d8fe6b8a47c8e01404a615a35951f0a9d1661c606041d6ad3630465a3b
BLAKE2b-256 checksum
How to use checksums
0c015aed833a702ca0e9739c0d0c9239100c08cc612896b923ea302d357671c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page