Skip to main content

VeloxPDF for Python

VeloxPDF renders HTML and CSS to PDF in-process. The Python package uses ctypes and supports Python 3.10 or later with no Python runtime dependencies. Release wheels bundle the native renderer for Windows x86-64, macOS x86-64 and ARM64, and glibc Linux x86-64 and ARM64.

Install

Download the veloxpdf-python-<target> artifact for your platform from a Release artifacts workflow run, extract it, and install its wheel.

python -m pip install /path/to/veloxpdf-0.1.0-py3-none-win_amd64.whl

Linux wheels encode their minimum glibc version in the manylinux tag. Once a version is published to PyPI, install it with python -m pip install veloxpdf.

Render a PDF

from pathlib import Path
from veloxpdf import render_html

pdf = render_html("<!doctype html><h1>Bonjour!</h1><p>Hello from Python.</p>")
Path("hello.pdf").write_bytes(pdf)

render_html accepts a str or UTF-8 bytes and returns the complete PDF as bytes. With no options, the renderer follows CSS @page rules and uses its native defaults for unset settings. Pass a PdfOptions instance to set the page size, orientation, and margin explicitly.

from pathlib import Path
from veloxpdf import Orientation, PageSize, PdfEngine, PdfOptions

pages = PdfOptions(PageSize.LETTER, Orientation.LANDSCAPE, margin_mm=18)
with PdfEngine(max_input_bytes=1_048_576, max_pages=20) as engine:
    pdf = engine.render("<h1>Quarterly report</h1>", pages)
    Path("report.pdf").write_bytes(pdf)

Reuse one engine across requests and threads. Call close() or use a with block to wait for active renders and release the engine. Use PdfOptions(PageSize.CUSTOM, custom_width_mm=120, custom_height_mm=180) for custom paper sizes. Pass font paths or bytes with PdfEngine(fonts=[Path("ReportSans.ttf")]) to register fonts at creation. Rendering uses the native offline resource policy. Native loading and rendering errors raise VeloxPdfError, whose status holds the C ABI status when available.

Develop from a checkout

Run these commands from the repository root. On macOS, use libveloxpdf_native.dylib in the library path.

cargo build --release --locked -p veloxpdf-ffi
export VELOXPDF_LIBRARY="$PWD/target/release/libveloxpdf_native.so"
python -m pip install -e . pypdf
python -m unittest discover -s bindings/python/tests -v
cargo build --release --locked -p veloxpdf-ffi
$env:VELOXPDF_LIBRARY = (Resolve-Path target/release/veloxpdf_native.dll).Path
python -m pip install -e . pypdf
python -m unittest discover -s bindings/python/tests -v

pypdf is used by the tests. Set VELOXPDF_LIBRARY to use a trusted local ABI v1 library with any installation. The override takes precedence over the bundled library.

Metadata

Release files for veloxpdf 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for veloxpdf 0.1.0
File Actions
veloxpdf-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for veloxpdf-0.1.0-py3-none-win_amd64.whl
veloxpdf-0.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64, Linux glibc 2.39+ x86-64 Details for veloxpdf-0.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
veloxpdf-0.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl Python 3 none Linux glibc 2.39+ ARM64, Linux glibc 2.35+ ARM64 Details for veloxpdf-0.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
veloxpdf-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for veloxpdf-0.1.0-py3-none-macosx_11_0_arm64.whl
veloxpdf-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for veloxpdf-0.1.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 46.0 MB

Release files / veloxpdf-0.1.0-py3-none-win_amd64.whl

Download URL veloxpdf-0.1.0-py3-none-win_amd64.whl
Size 8.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dab35cade2af09245bb6c456d655167d7c5e3ec327acbfae8e8d94786ab73895
BLAKE2b-256 checksum
How to use checksums
41a6ebd26efc4cf2fa48507117333b466a3039ecc5988892c0677a27e5eb678e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / veloxpdf-0.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl

Download URL veloxpdf-0.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
Size 9.7 MB
Tags Linux glibc 2.35+ x86-64 Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e7e8d4d216f24119a71e0725bfcd3edfb3a545193a13895fb1e056c7b8080bcd
BLAKE2b-256 checksum
How to use checksums
f194ea999af6f2cf2622ea84c06ed75e33e2519291685a9049450f51a9d3b2b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / veloxpdf-0.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl

Download URL veloxpdf-0.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
Size 9.7 MB
Tags Linux glibc 2.35+ ARM64 Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
be30244995d5dfb7f48a97409db2252919fe17d9ebf8354219d21c8eb33be680
BLAKE2b-256 checksum
How to use checksums
e2a6f40d9e581e0ab59e1abcc9e5610a2faf8f5ebe424f0b73fca4562e75e462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / veloxpdf-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL veloxpdf-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 8.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5c38f79b8ee077c43d05d718c9693248c4a5eaacf4d92b7a91f0752a8beecdb4
BLAKE2b-256 checksum
How to use checksums
a87a3e39482e9afda21610a5e4654329718bc396066a5a2fa7ac83d03b68bebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / veloxpdf-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL veloxpdf-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 9.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7557a0ffb9c9064f74100952f706b5c34e276703e5ff5781a552b979b96b40b7
BLAKE2b-256 checksum
How to use checksums
7c3fdeab8071e47bbf27d27bd5bd1734a7892da353f1a302124e386cd3094dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for veloxpdf 0.1.0

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for veloxpdf-0.1.0-py3-none-win_amd64.whl

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 Nov 29, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page