Python bindings for docoxide, a fast HTML to PDF converter written in Rust
Project description
docoxide
Python bindings for docoxide, a fast, browser-free HTML to PDF converter.
Install
pip install docoxide
Requires Python 3.9 or newer.
Library usage
from docoxide import convert
html = "<h1>Hello</h1>"
pdf: bytes = convert(html)
with open("hello.pdf", "wb") as f:
f.write(pdf)
With CSS:
pdf = convert(html, "h1 { color: red; }")
CLI usage
docoxide --input page.html --output page.pdf
docoxide --input page.html --css style.css --output page.pdf
Reads from stdin if --input is omitted or set to -:
echo '<h1>Hello</h1>' | docoxide --output hello.pdf
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 docoxide-0.1.0a1.tar.gz.
File metadata
- Download URL: docoxide-0.1.0a1.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f0a215e072d7d956fabc29d62048904bcdb1b8d8e518754c3f72bf694c86e0d
|
|
| MD5 |
838be11e4acc998ea9b171af1af9b8bc
|
|
| BLAKE2b-256 |
d59042b76b33cbd96774bf3c21e4998aea77e11beb11e3472d85290dc5f085c1
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1.tar.gz:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1.tar.gz -
Subject digest:
0f0a215e072d7d956fabc29d62048904bcdb1b8d8e518754c3f72bf694c86e0d - Sigstore transparency entry: 1258556765
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docoxide-0.1.0a1-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: docoxide-0.1.0a1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 107.3 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1117852d6d1ec0f04e2e5ab2cab06d9997125380024d7df2fa7e2a57c1be1637
|
|
| MD5 |
f869a5a5222360d32834382af3b7c7d0
|
|
| BLAKE2b-256 |
444f314277014774599b03dd22d4a7a262aa23d62cb167ff2e5082e2f3393c4d
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-win_amd64.whl:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1-cp39-abi3-win_amd64.whl -
Subject digest:
1117852d6d1ec0f04e2e5ab2cab06d9997125380024d7df2fa7e2a57c1be1637 - Sigstore transparency entry: 1258556767
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 238.3 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f9e414d87c193895673cc1a1b5c0a1942549cb03e82ad6032bfdde4d8c08820
|
|
| MD5 |
03785884115e87b2d34059733bfe7860
|
|
| BLAKE2b-256 |
8cbdfa5bc867629b01e63c96b9d5badfec5661f2daf63a5d80746663c2f39433
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
8f9e414d87c193895673cc1a1b5c0a1942549cb03e82ad6032bfdde4d8c08820 - Sigstore transparency entry: 1258556771
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 210.5 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24689da092664e1f6cbf66b7cf63da090b58b87bec3e57b60d42a3462d3057fa
|
|
| MD5 |
27fd0711183626e3f02b4fbcddb0f91a
|
|
| BLAKE2b-256 |
23335978cd69fbe2894e7080d7cf0ebd9119375c27ccd137b10debcb6a67f0e8
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
24689da092664e1f6cbf66b7cf63da090b58b87bec3e57b60d42a3462d3057fa - Sigstore transparency entry: 1258556774
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 214.0 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d4264cc8ec9857d939325031251ab3c525de4f9f390d9e6f59ba3ae6358cb3
|
|
| MD5 |
99b41371f829860ab2032d27d24f5191
|
|
| BLAKE2b-256 |
e95c4a644d164e251912baedc7cbfb68f4ebf0af0391fdd0aa49d73274e7bacc
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl -
Subject digest:
f1d4264cc8ec9857d939325031251ab3c525de4f9f390d9e6f59ba3ae6358cb3 - Sigstore transparency entry: 1258556770
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 246.4 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a8a1d2639333c0760f16e15d60475331a386f136f9c4ec05c963e80dbfceb95
|
|
| MD5 |
1658d8e2bc0776d8c4abd86d74f26669
|
|
| BLAKE2b-256 |
bbe492ccac2a61949032f582490cd0a786c7783e0795bacd0e42521344ed4dd4
|
Provenance
The following attestation bundles were made for docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-pypi.yml on docoxide/docoxide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
6a8a1d2639333c0760f16e15d60475331a386f136f9c4ec05c963e80dbfceb95 - Sigstore transparency entry: 1258556778
- Sigstore integration time:
-
Permalink:
docoxide/docoxide@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Branch / Tag:
refs/tags/all-v0.1.0-alpha.1 - Owner: https://github.com/docoxide
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b9e4b0148ae7267a9e038cdfb43e3e5344d8934 -
Trigger Event:
release
-
Statement type: