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.7.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

izip2pdf-0.1.7-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file izip2pdf-0.1.7.tar.gz.

File metadata

  • Download URL: izip2pdf-0.1.7.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for izip2pdf-0.1.7.tar.gz
Algorithm Hash digest
SHA256 cebfd5d55df8d0ea8a57090fc7bbf4b3355d2fa01d72cb2d071370313f2de9aa
MD5 e8a36c2ce5ae08aaf004c6202617b025
BLAKE2b-256 abfc9c9b86d3679598bb320e169826d416b92946c73387f1c3a813aa8c683654

See more details on using hashes here.

File details

Details for the file izip2pdf-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: izip2pdf-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for izip2pdf-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd25b980b877dba1852ad6a036688b06d43b12c2ea5324197792d4c3f438f22
MD5 520e1d26f670c763d42f8f492f1e47ed
BLAKE2b-256 f7e26c36117c8f2072d21f435e88f18d218b60d7533176f56d3415c87c681195

See more details on using hashes here.

Supported by

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