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.
Metadata
Release files for gowkhtmltopdf 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gowkhtmltopdf-0.2.6.tar.gz | 23.5 kB | With provenance | Details for gowkhtmltopdf-0.2.6.tar.gz |
Built distributions (wheels)
Total release size: 46.0 MB
Release files / gowkhtmltopdf-0.2.6.tar.gz
| Download URL | gowkhtmltopdf-0.2.6.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
059ca9ebccd74025b6ac463679391c0887d2835527522ff0006564ac5b4851ee
|
|
BLAKE2b-256 checksum How to use checksums |
ea271d85805c4782d0b69804e0a8f16b104ca2ee14babd1dd38782259933c1e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-win_amd64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
56d9f456ca28deca7d0c1896d3a66e9925a5791563a961fc51693d54909e6a23
|
|
BLAKE2b-256 checksum How to use checksums |
a154bbf044891c89ac6e7a5b1ee61e2866b0d648678a5adfd65d842e52561345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5ec929271203fd1249c5646a0431780bb40276723d5bdb618f3c5788276511bf
|
|
BLAKE2b-256 checksum How to use checksums |
e055a0f2c52fe7071572d108743b1505a631f3d138466d7260550539ddc169c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5ec208aa0529742dbc3a73c95c56f6d58b2bd1caaef116a9684779c79140a808
|
|
BLAKE2b-256 checksum How to use checksums |
abe75a2e2997c4a7bdf0fbfe15da84f28584ce84eab13ec5dd44fd0c96a9bbc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
bda6f5a501b1e29956391551f89f0d440da78416ec7da14537d58dca8c9c20c5
|
|
BLAKE2b-256 checksum How to use checksums |
f92531905918c22178d749f27f75bc4448e5fdc73a5d72b615ae5169020870cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
8a6d83aeedda613ead2bf50883730be76d082aa55845fc38bdba715632267fb6
|
|
BLAKE2b-256 checksum How to use checksums |
3031b3189e1dd5b0cd2951fcdd71a2e5584505e155bd7e20ec75a87058b385b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl
| Download URL | gowkhtmltopdf-0.2.6-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e355d8ac7cd45f115a21462669639e567db5b8af08f57addbb89e6cf00a8c5c6
|
|
BLAKE2b-256 checksum How to use checksums |
aca2b8df0b8f3845d278f159986054a92f78d1fb4e8dd6f0c12eea73be4ce6ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logSecurity for gowkhtmltopdf 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for gowkhtmltopdf-0.2.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.