izip2pdf (image zip to pdf)
This library convert zip file containing image file to pdf file.
- fast convert
- pdf page width is same
- This library convert on memory, not use tmp folder.
Support image format in zip
- jpeg, jpeg2000, png, webp, avif, heif, psd, tiff, etc.
Usage
$ izip2pdf sample1.zip
$ izip2pdf sample2.zip sample3.zip
As result, this library make sample1.pdf sample2.pdf sample3.pdf
In the case of Linux environment, you can use
$ izip2pdf sample*.zip
Installation
If you want to install, you can run:
$ pip install izip2pdf
Library
The package can also be used as a library:
Basic Usage
import izip2pdf
# usecase 1: file path to file path
izip2pdf.convert("input.zip", "output.pdf")
# usecase 2: bytes to file
with open("input.zip", "rb") as f:
zip_bin = f.read()
izip2pdf.convert(zip_bin, "output/output2.pdf")
# usecase 3: file to bytes
pdf_bin = izip2pdf.convert("input.zip")
with open("output.pdf", "wb") as f:
f.write(pdf_bin)
# usecase 4: bytes to bytes
with open("input.zip", "rb") as f:
zip_bin = f.read()
pdf_bin = izip2pdf.convert(zip_bin)
with open("output.pdf", "wb") as f:
f.write(pdf_bin)
Advanced Options
import izip2pdf
# With progress bar
izip2pdf.convert("input.zip", "output.pdf", progress=True)
# Custom JPEG quality and dimensions
izip2pdf.convert(
"input.zip",
"output.pdf",
jpeg_quality=95,
max_width=4096,
max_height=4096
)
# Handle transparency with different background colors
izip2pdf.convert("input.zip", "output.pdf", alpha_mode="white") # white background
izip2pdf.convert("input.zip", "output.pdf", alpha_mode="black") # black background
izip2pdf.convert("input.zip", "output.pdf", alpha_mode="drop") # drop alpha channel
# Error handling options
izip2pdf.convert("input.zip", "output.pdf", on_error="warn") # warn and continue (default)
izip2pdf.convert("input.zip", "output.pdf", on_error="skip") # silently skip errors
izip2pdf.convert("input.zip", "output.pdf", on_error="raise") # raise exception on error
Security Options
For processing untrusted ZIP files, you can configure safety limits:
import izip2pdf
# Default: safe limits (recommended for untrusted input)
izip2pdf.convert("untrusted.zip", "output.pdf") # Uses ~178MP pixel limit
# Custom pixel limit to prevent decompression bombs
izip2pdf.convert(
"untrusted.zip",
"output.pdf",
max_image_pixels=100_000_000 # 100 megapixels max
)
# For trusted input only: disable limits (use with caution!)
izip2pdf.convert(
"trusted.zip",
"output.pdf",
max_image_pixels=0, # Disable pixel limit (WARNING: DoS risk!)
load_truncated_images=True # Allow incomplete images (WARNING: risky!)
)
Security Notes:
- By default,
izip2pdfuses Pillow's safe limits (~178 megapixels) to protect against decompression bomb attacks - Setting
max_image_pixels=0disables this protection and may expose you to DoS attacks from malicious ZIP files - Only disable safety limits when processing ZIP files from trusted sources
Reference
Metadata
Release files for izip2pdf 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| izip2pdf-0.1.9.tar.gz | 25.0 kB | With provenance | Details for izip2pdf-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| izip2pdf-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for izip2pdf-0.1.9-py3-none-any.whl |
Total release size: 44.4 kB
Release files / izip2pdf-0.1.9.tar.gz
| Download URL | izip2pdf-0.1.9.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2eb9c9a8fd0cc6312d10bf62cbce75325726c4874db3ab5f8036d5fb14564511
|
|
BLAKE2b-256 checksum How to use checksums |
792bbac01dfdc975caa748568055026a01a15db07ae301b41f0b35c8235c4c47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2025.
Transparency logRelease files / izip2pdf-0.1.9-py3-none-any.whl
| Download URL | izip2pdf-0.1.9-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79aa2441931fc84aa77bf1aca948d4d642ff076175fd9094773632fc6f038eeb
|
|
BLAKE2b-256 checksum How to use checksums |
4e620c72c7cfc80b3dac528b553ef154f3a5d3dd1dd384e9239f9949708a7b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2025.
Transparency logSecurity for izip2pdf 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for izip2pdf-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.