gowkhtmltopdf (Python)
In-process Python bindings for the gowkhtmltopdf HTML-to-PDF engine. The
package loads libgowkhtmltopdf (a Go -buildmode=c-shared library) with
stdlib ctypes; there is no subprocess and no compiled Python extension.
Requires Python 3.8+. Linux is the first-supported platform; macOS and Windows builds follow the wheel matrix.
Document style
Mirrors the Go Document API:
from gowkhtmltopdf import Document, Page, Content
doc = Document(
pages=[Page(source=Content(html=b"<html><body><h1>Invoice</h1></body></html>"))],
page_size="A4",
)
pdf_bytes: bytes = doc.pdf() # or doc.pdf(timeout=30)
Helper style
from gowkhtmltopdf import convert_html_to_pdf, PDFOptions
pdf_bytes = convert_html_to_pdf(
html=b"<html><body><h1>Invoice #42</h1><p>Total: $19.00</p></body></html>",
options=PDFOptions(page_size="A4", orientation="portrait"),
)
with open("invoice.pdf", "wb") as f:
f.write(pdf_bytes)
Images work the same way via ImageDocument or
convert_html_to_image(html, options=ImageOptions(width=1024)).
The full build, install, security (ACL / NetworkPolicy), and ABI stability guide lives in documentation/python.md.
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 gowkhtmltopdf-0.2.6.tar.gz.
File metadata
- Download URL: gowkhtmltopdf-0.2.6.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059ca9ebccd74025b6ac463679391c0887d2835527522ff0006564ac5b4851ee
|
|
| MD5 |
ef4e12b92bc2c4d1108f533e81718c86
|
|
| BLAKE2b-256 |
ea271d85805c4782d0b69804e0a8f16b104ca2ee14babd1dd38782259933c1e2
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6.tar.gz:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6.tar.gz -
Subject digest:
059ca9ebccd74025b6ac463679391c0887d2835527522ff0006564ac5b4851ee - Sigstore transparency entry: 2819201591
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl
- Upload date:
- Size: 7.8 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d9f456ca28deca7d0c1896d3a66e9925a5791563a961fc51693d54909e6a23
|
|
| MD5 |
639023bfa97ea07979d3a651f14facd7
|
|
| BLAKE2b-256 |
a154bbf044891c89ac6e7a5b1ee61e2866b0d648678a5adfd65d842e52561345
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl -
Subject digest:
56d9f456ca28deca7d0c1896d3a66e9925a5791563a961fc51693d54909e6a23 - Sigstore transparency entry: 2819202029
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ec929271203fd1249c5646a0431780bb40276723d5bdb618f3c5788276511bf
|
|
| MD5 |
af83b04d87f8966635a3d421874e0126
|
|
| BLAKE2b-256 |
e055a0f2c52fe7071572d108743b1505a631f3d138466d7260550539ddc169c0
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl -
Subject digest:
5ec929271203fd1249c5646a0431780bb40276723d5bdb618f3c5788276511bf - Sigstore transparency entry: 2819202191
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ec208aa0529742dbc3a73c95c56f6d58b2bd1caaef116a9684779c79140a808
|
|
| MD5 |
be8dbe5769e1aadcdd5bffa48634fd15
|
|
| BLAKE2b-256 |
abe75a2e2997c4a7bdf0fbfe15da84f28584ce84eab13ec5dd44fd0c96a9bbc8
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl -
Subject digest:
5ec208aa0529742dbc3a73c95c56f6d58b2bd1caaef116a9684779c79140a808 - Sigstore transparency entry: 2819202307
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bda6f5a501b1e29956391551f89f0d440da78416ec7da14537d58dca8c9c20c5
|
|
| MD5 |
c640d60a7a484e377eafa4ea0ba6c4ba
|
|
| BLAKE2b-256 |
f92531905918c22178d749f27f75bc4448e5fdc73a5d72b615ae5169020870cd
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
bda6f5a501b1e29956391551f89f0d440da78416ec7da14537d58dca8c9c20c5 - Sigstore transparency entry: 2819202413
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: Python 3, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a6d83aeedda613ead2bf50883730be76d082aa55845fc38bdba715632267fb6
|
|
| MD5 |
ae302e987969f0eab2d5272b44e5018b
|
|
| BLAKE2b-256 |
3031b3189e1dd5b0cd2951fcdd71a2e5584505e155bd7e20ec75a87058b385b2
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
8a6d83aeedda613ead2bf50883730be76d082aa55845fc38bdba715632267fb6 - Sigstore transparency entry: 2819201909
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.3 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e355d8ac7cd45f115a21462669639e567db5b8af08f57addbb89e6cf00a8c5c6
|
|
| MD5 |
51e9851906b5c271e757023a0f9a969e
|
|
| BLAKE2b-256 |
aca2b8df0b8f3845d278f159986054a92f78d1fb4e8dd6f0c12eea73be4ce6ad
|
Provenance
The following attestation bundles were made for gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl:
Publisher:
publish-pypi.yml on chinmay-sawant/gowkhtmltopdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl -
Subject digest:
e355d8ac7cd45f115a21462669639e567db5b8af08f57addbb89e6cf00a8c5c6 - Sigstore transparency entry: 2819201764
- Sigstore integration time:
-
Permalink:
chinmay-sawant/gowkhtmltopdf@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/chinmay-sawant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@58968722ebd69de6e0d01f05c74c63cf5e2edbbe -
Trigger Event:
push
-
Statement type: