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

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:

$ pip3 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.6.tar.gz (16.8 kB view hashes)

Uploaded Source

Built Distribution

izip2pdf-0.1.6-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

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