IMG2PDF
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)
| File | Size | Uploaded | |
|---|---|---|---|
| img2pdf-plus-1.1.3.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|