Skip to main content

Merge images into one pdf file including useful optiıns via command line.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

img2pdf-plus-1.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

img2pdf_plus-1.1.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file img2pdf-plus-1.1.3.tar.gz.

File metadata

  • Download URL: img2pdf-plus-1.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for img2pdf-plus-1.1.3.tar.gz
Algorithm Hash digest
SHA256 aed13cd834615008d4b7756fdf7ce207d9ca9f7e10e48c8775e7dc4589d424d8
MD5 4bd12dcc49dfb6b218edb4afa8f62c73
BLAKE2b-256 1cdc706cbd60f3fd049571dacd63ee7dc2b2691832e393f8bd7a1e412042feb9

See more details on using hashes here.

File details

Details for the file img2pdf_plus-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: img2pdf_plus-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for img2pdf_plus-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 885810d8fe6b8a47c8e01404a615a35951f0a9d1661c606041d6ad3630465a3b
MD5 1544920b7f49f9ad24b63155b0bca678
BLAKE2b-256 0c015aed833a702ca0e9739c0d0c9239100c08cc612896b923ea302d357671c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page