Paged HTML rendering library
Project description
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")
Links & Resources
Documentation: https://plutoprint.readthedocs.io
Donation: https://github.com/sponsors/plutoprint
License
PlutoPrint is licensed under the MIT License, allowing for both personal and commercial use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa3cdb4550fa663ad8c0ac2810c1f4191687872067b248081faeb7915ebea3cd
|
|
| MD5 |
66eb598599707dfabddf6670e6f5750e
|
|
| BLAKE2b-256 |
5cae71229088928630023a09d6ebd10ee2e47cd47a0b3a114c56a575773ff928
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0.tar.gz:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0.tar.gz -
Subject digest:
aa3cdb4550fa663ad8c0ac2810c1f4191687872067b248081faeb7915ebea3cd - Sigstore transparency entry: 246089107
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7da14da038a01f2edeedf7123d3a8a7f51309d7a95106b5b9d5749097122ea8f
|
|
| MD5 |
78120ae6e9ae44faab3b49a30e6fb324
|
|
| BLAKE2b-256 |
dd84dfbfcccf56a4f228c566ba940c56ad06dd543093e04a5fe8fb4032535b5f
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0-cp312-cp312-win_amd64.whl:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0-cp312-cp312-win_amd64.whl -
Subject digest:
7da14da038a01f2edeedf7123d3a8a7f51309d7a95106b5b9d5749097122ea8f - Sigstore transparency entry: 246089112
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a55fdb8cbdef1241ca6398790c4f27c519987685c21dce5f3cf92ca666c5f93b
|
|
| MD5 |
ecdc88c503e62fb2d5f993ae7f2e61c1
|
|
| BLAKE2b-256 |
f7a14c5ba23752009311039ef93cbfa73a0b45cb70faa36e5a1b095b475688dc
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0-cp311-cp311-win_amd64.whl:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0-cp311-cp311-win_amd64.whl -
Subject digest:
a55fdb8cbdef1241ca6398790c4f27c519987685c21dce5f3cf92ca666c5f93b - Sigstore transparency entry: 246089109
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0ef909ae5217aab2726dd3921e0531bf78206c226e09ba9dc4b8ff5a459468
|
|
| MD5 |
9b15cb8762128b15f7ca00f4ca475eb5
|
|
| BLAKE2b-256 |
02ce0c3efb80011c2c9c4a0646f5258318e9c00d9c2a2794630587a88bec907c
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0-cp310-cp310-win_amd64.whl:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0-cp310-cp310-win_amd64.whl -
Subject digest:
bf0ef909ae5217aab2726dd3921e0531bf78206c226e09ba9dc4b8ff5a459468 - Sigstore transparency entry: 246089115
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6e7a0fe749b70a03807eb2f3195b7067d04f27fd8bf14ea5ce592d4219bf2a
|
|
| MD5 |
546932ba6760c5eb568aed8dc21b5215
|
|
| BLAKE2b-256 |
4e0663bca9b5fc28e595e4a9d9691bdc83ebe96176b6da630a7df8afeaab9257
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0-cp39-cp39-win_amd64.whl:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0-cp39-cp39-win_amd64.whl -
Subject digest:
3b6e7a0fe749b70a03807eb2f3195b7067d04f27fd8bf14ea5ce592d4219bf2a - Sigstore transparency entry: 246089116
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57b2077d73d76a7b43f06d649b38c07dbd16ca291ba67dcd53ea36287451f32e
|
|
| MD5 |
e51cf04962b82608d063cd4a72ec2883
|
|
| BLAKE2b-256 |
5ad074fb48cf81b8dd10dfc71807dc498c4791717155ec21040be7be80dfdeb6
|
Provenance
The following attestation bundles were made for plutoprint-0.2.0-cp38-cp38-win_amd64.whl:
Publisher:
main.yml on plutoprint/plutoprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plutoprint-0.2.0-cp38-cp38-win_amd64.whl -
Subject digest:
57b2077d73d76a7b43f06d649b38c07dbd16ca291ba67dcd53ea36287451f32e - Sigstore transparency entry: 246089114
- Sigstore integration time:
-
Permalink:
plutoprint/plutoprint@c2b2844773e31509c9c7831c92718af4d1673f2e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/plutoprint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@c2b2844773e31509c9c7831c92718af4d1673f2e -
Trigger Event:
push
-
Statement type: