convert zip file including image to pdf file
Project description
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:
import izip2pdf
# usecase 1
izip2pdf.convert("input.zip", "output.pdf")
# usecase 2
with open("input.zip", "rb") as f:
zip_bin = f.read()
izip2pdf.convert(zip_bin, "output/output2.pdf")
# usecase 3
pdf_bin = izip2pdf.convert("input.zip")
with open("output.pdf", "wb") as f:
f.write(pdf_bin)
# usecase 4
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)
Reference
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file izip2pdf-0.1.8.tar.gz.
File metadata
- Download URL: izip2pdf-0.1.8.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b748ea7b333b3af79378cd0540b31f214c8a43c46e1fc063a186f22a3ffab4b
|
|
| MD5 |
ae0d6c9aebe3aca695360de45149d4e0
|
|
| BLAKE2b-256 |
f5760f08512a0042706983067d186ff2405f90c88d39437e4795e7acf826274a
|
Provenance
The following attestation bundles were made for izip2pdf-0.1.8.tar.gz:
Publisher:
publish-to-test-pypi.yml on hy20191108/izip2pdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
izip2pdf-0.1.8.tar.gz -
Subject digest:
3b748ea7b333b3af79378cd0540b31f214c8a43c46e1fc063a186f22a3ffab4b - Sigstore transparency entry: 370419303
- Sigstore integration time:
-
Permalink:
hy20191108/izip2pdf@012c5e78c393bc2d2fb674c2241286b560098147 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/hy20191108
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@012c5e78c393bc2d2fb674c2241286b560098147 -
Trigger Event:
push
-
Statement type:
File details
Details for the file izip2pdf-0.1.8-py3-none-any.whl.
File metadata
- Download URL: izip2pdf-0.1.8-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b60d608fa35d3298dc29ed8090a589f0e9fc399c798cf67e8ebaa04099e1ee14
|
|
| MD5 |
fc71c3858389cbab27e9c6e266fb382e
|
|
| BLAKE2b-256 |
3b8a2f1a2b2692ebd1f861379e8ede71715ee4264f918ec175473b144221ea29
|
Provenance
The following attestation bundles were made for izip2pdf-0.1.8-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on hy20191108/izip2pdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
izip2pdf-0.1.8-py3-none-any.whl -
Subject digest:
b60d608fa35d3298dc29ed8090a589f0e9fc399c798cf67e8ebaa04099e1ee14 - Sigstore transparency entry: 370419329
- Sigstore integration time:
-
Permalink:
hy20191108/izip2pdf@012c5e78c393bc2d2fb674c2241286b560098147 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/hy20191108
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@012c5e78c393bc2d2fb674c2241286b560098147 -
Trigger Event:
push
-
Statement type: