Skip to main content

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

izip2pdf-0.1.8.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

izip2pdf-0.1.8-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for izip2pdf-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3b748ea7b333b3af79378cd0540b31f214c8a43c46e1fc063a186f22a3ffab4b
MD5 ae0d6c9aebe3aca695360de45149d4e0
BLAKE2b-256 f5760f08512a0042706983067d186ff2405f90c88d39437e4795e7acf826274a

See more details on using hashes here.

Provenance

The following attestation bundles were made for izip2pdf-0.1.8.tar.gz:

Publisher: publish-to-test-pypi.yml on hy20191108/izip2pdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for izip2pdf-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b60d608fa35d3298dc29ed8090a589f0e9fc399c798cf67e8ebaa04099e1ee14
MD5 fc71c3858389cbab27e9c6e266fb382e
BLAKE2b-256 3b8a2f1a2b2692ebd1f861379e8ede71715ee4264f918ec175473b144221ea29

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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