Skip to main content

Paged HTML rendering library

Project description

build docs license downloads pypi pyver

PlutoPrint

PlutoPrint is a lightweight and easy-to-use Python library for generating high-quality PDFs and images directly from HTML or XML content. It is based on PlutoBook’s robust rendering engine and provides a simple API to convert your HTML into crisp PDF documents or vibrant image files. This makes it ideal for reports, invoices, or visual snapshots.

Installation

pip install plutoprint

PlutoPrint depends on PlutoBook. For faster builds, it is highly recommended to install PlutoBook and its dependencies manually beforehand. Otherwise, Meson will build them from source during installation, which can significantly increase build time.

For Windows 64-bit users, PlutoPrint provides prebuilt binaries, so no additional setup is required.

Quick Usage

import plutoprint

book = plutoprint.Book(plutoprint.PAGE_SIZE_A4)
book.load_html("<b> Hello World </b>")
book.write_to_pdf("hello.pdf")

License

PlutoPrint is licensed under the MIT License, allowing for both personal and commercial use.

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

plutoprint-0.2.0.tar.gz (28.5 kB view details)

Uploaded Source

Built Distributions

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

plutoprint-0.2.0-cp312-cp312-win_amd64.whl (18.6 MB view details)

Uploaded CPython 3.12Windows x86-64

plutoprint-0.2.0-cp311-cp311-win_amd64.whl (18.6 MB view details)

Uploaded CPython 3.11Windows x86-64

plutoprint-0.2.0-cp310-cp310-win_amd64.whl (18.6 MB view details)

Uploaded CPython 3.10Windows x86-64

plutoprint-0.2.0-cp39-cp39-win_amd64.whl (18.6 MB view details)

Uploaded CPython 3.9Windows x86-64

plutoprint-0.2.0-cp38-cp38-win_amd64.whl (18.6 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file plutoprint-0.2.0.tar.gz.

File metadata

  • Download URL: plutoprint-0.2.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aa3cdb4550fa663ad8c0ac2810c1f4191687872067b248081faeb7915ebea3cd
MD5 66eb598599707dfabddf6670e6f5750e
BLAKE2b-256 5cae71229088928630023a09d6ebd10ee2e47cd47a0b3a114c56a575773ff928

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0.tar.gz:

Publisher: main.yml on plutoprint/plutoprint

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

File details

Details for the file plutoprint-0.2.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: plutoprint-0.2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 18.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7da14da038a01f2edeedf7123d3a8a7f51309d7a95106b5b9d5749097122ea8f
MD5 78120ae6e9ae44faab3b49a30e6fb324
BLAKE2b-256 dd84dfbfcccf56a4f228c566ba940c56ad06dd543093e04a5fe8fb4032535b5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0-cp312-cp312-win_amd64.whl:

Publisher: main.yml on plutoprint/plutoprint

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

File details

Details for the file plutoprint-0.2.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: plutoprint-0.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 18.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a55fdb8cbdef1241ca6398790c4f27c519987685c21dce5f3cf92ca666c5f93b
MD5 ecdc88c503e62fb2d5f993ae7f2e61c1
BLAKE2b-256 f7a14c5ba23752009311039ef93cbfa73a0b45cb70faa36e5a1b095b475688dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0-cp311-cp311-win_amd64.whl:

Publisher: main.yml on plutoprint/plutoprint

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

File details

Details for the file plutoprint-0.2.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: plutoprint-0.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 18.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf0ef909ae5217aab2726dd3921e0531bf78206c226e09ba9dc4b8ff5a459468
MD5 9b15cb8762128b15f7ca00f4ca475eb5
BLAKE2b-256 02ce0c3efb80011c2c9c4a0646f5258318e9c00d9c2a2794630587a88bec907c

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0-cp310-cp310-win_amd64.whl:

Publisher: main.yml on plutoprint/plutoprint

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

File details

Details for the file plutoprint-0.2.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: plutoprint-0.2.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 18.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3b6e7a0fe749b70a03807eb2f3195b7067d04f27fd8bf14ea5ce592d4219bf2a
MD5 546932ba6760c5eb568aed8dc21b5215
BLAKE2b-256 4e0663bca9b5fc28e595e4a9d9691bdc83ebe96176b6da630a7df8afeaab9257

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0-cp39-cp39-win_amd64.whl:

Publisher: main.yml on plutoprint/plutoprint

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

File details

Details for the file plutoprint-0.2.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: plutoprint-0.2.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 18.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for plutoprint-0.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 57b2077d73d76a7b43f06d649b38c07dbd16ca291ba67dcd53ea36287451f32e
MD5 e51cf04962b82608d063cd4a72ec2883
BLAKE2b-256 5ad074fb48cf81b8dd10dfc71807dc498c4791717155ec21040be7be80dfdeb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for plutoprint-0.2.0-cp38-cp38-win_amd64.whl:

Publisher: main.yml on plutoprint/plutoprint

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