rofd-convert-py
Headless OFD (GB/T 33190) to PDF conversion — PyO3 bindings over the
rofd-convert kernel (convert spec §6.6).
Install (wheel, abi3-py39+)
pip install rofd-convert
Dev build from the repository root:
py -3.1 -m maturin build --release -m crates/convert-py/Cargo.toml -o target/wheels
py -3.1 -m pip install --force-reinstall target/wheels/rofd_convert-*.whl
Usage
from rofd_convert import Converter, register_font_file
# Once per process, BEFORE the first Converter (registry snapshot).
# Real documents declaring non-embedded fonts need a registered font.
register_font_file("simsun.ttc")
c = Converter()
pdf, warnings = c.convert(ofd_bytes)
# Content flags are all on by default; flip per call:
pdf2, _ = c.convert(ofd_bytes, watermark=False, max_pages=50)
convert releases the GIL during the kernel call; one instance serves
one call at a time (a concurrent call raises ConvertError("converter in use")). For throughput, give each thread its own instance
(threading.local) — demo/run.py shows the ThreadPoolExecutor recipe.
Acceptance
py -3.1 crates/convert-py/demo/run.py # pooled converts == CLI bytes
Metadata
Release files for rofd-convert 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| rofd_convert-0.1.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for rofd_convert-0.1.1-cp39-abi3-win_amd64.whl |
| rofd_convert-0.1.1-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for rofd_convert-0.1.1-cp39-abi3-manylinux_2_28_x86_64.whl |
| rofd_convert-0.1.1-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for rofd_convert-0.1.1-cp39-abi3-macosx_11_0_arm64.whl |
| rofd_convert-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for rofd_convert-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 11.5 MB
Release files / rofd_convert-0.1.1-cp39-abi3-win_amd64.whl
| Download URL | rofd_convert-0.1.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3f5b83b4e067dac17d08ca466ed3375346d6f7b0fda36dd1ab1985c219147f07
|
|
BLAKE2b-256 checksum How to use checksums |
4bb4dc4bbd19020080947f375ecb67df1a464d9ef7367bb002fc1f47d968c062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / rofd_convert-0.1.1-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | rofd_convert-0.1.1-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7d08ba0781b827bff767e58d17141e8abe46bed6c25d9cf23a50f6b07f710e0d
|
|
BLAKE2b-256 checksum How to use checksums |
1386102d59aab10e170f0787f1dc44ec398a61e609db6f063afc5b57750ced47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / rofd_convert-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | rofd_convert-0.1.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
00eeea5daf4f896a01d039011dea00bad3c3190cb1fe4b17e0d2d8603d36f6ba
|
|
BLAKE2b-256 checksum How to use checksums |
f6c65fc810763dc60bdbdb1e80ef5754525359aa8eaadd4b653036e046d9b809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / rofd_convert-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | rofd_convert-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c9edeb7f0bf43513a8083d00a0ea0db831496a1f96047495909377bdfea0b1b7
|
|
BLAKE2b-256 checksum How to use checksums |
221b9c7155bf0998952ca28f006b20b2574d6edeb7a8d2cd72883b1e4614b333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for rofd-convert 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.