Skip to main content

ofdrw-rs for Python

Python 3.10+ bindings to the Rust OFD core through CFFI. Install the matching version from PyPI:

python -m pip install ofdrw-rs==0.3.0

Check the registry and release pages for version availability. The wheel includes the native library; a Rust toolchain is not needed. Wheels for all six supported platforms are also available from GitHub Releases.

from ofdrw_rs import Document

with Document.new() as document:
    document.add_text_page("你好,OFD", 210, 297)
    document.save("hello.ofd")
    print(document.page_text(0))

Use Document.open(path), Document.from_bytes(data) or Document.from_pdf_bytes(data) to read existing content. Use page_svg(0), page_png(0, 96) or to_pdf() to export. Close documents or use a context manager. Coordinates are millimeters and page indexes start at zero.

Set OFDRW_LIB_PATH to an absolute shared-library path for a custom build. Supported behavior and limitations are documented in the repository README.

Metadata

Release files for ofdrw-rs 0.3.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 ofdrw-rs 0.3.0
File Actions
ofdrw_rs-0.3.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for ofdrw_rs-0.3.0-py3-none-win_arm64.whl
ofdrw_rs-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for ofdrw_rs-0.3.0-py3-none-win_amd64.whl
ofdrw_rs-0.3.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.39+ x86-64, Linux glibc 2.35+ x86-64 Details for ofdrw_rs-0.3.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
ofdrw_rs-0.3.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64, Linux glibc 2.39+ ARM64 Details for ofdrw_rs-0.3.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
ofdrw_rs-0.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for ofdrw_rs-0.3.0-py3-none-macosx_11_0_arm64.whl
ofdrw_rs-0.3.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for ofdrw_rs-0.3.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 69.2 MB

Release files / ofdrw_rs-0.3.0-py3-none-win_arm64.whl

Download URL ofdrw_rs-0.3.0-py3-none-win_arm64.whl
Size 10.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
0eac43c83a900c80f82da41d5f03d8fa14055c9c3724ebabd2cc9ebb7c52ceef
BLAKE2b-256 checksum
How to use checksums
f898b486d89d5e8b66b08f08df8edd9671c13d49b26e393106ab923d7b49670d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / ofdrw_rs-0.3.0-py3-none-win_amd64.whl

Download URL ofdrw_rs-0.3.0-py3-none-win_amd64.whl
Size 11.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e01826f53f2e675b48cbc2e8326d8929c17f29b88a8fe202d4f0934a44bf54df
BLAKE2b-256 checksum
How to use checksums
953dfa0d5c086f8a690dd6d1482e9cd6db110cf75888b22e8308b0bc3ee3665f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / ofdrw_rs-0.3.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl

Download URL ofdrw_rs-0.3.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
Size 12.3 MB
Tags Linux glibc 2.35+ x86-64 Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
efb7d191513e00f7e09826b02944197511834edf88fe233b1065eb525daf780f
BLAKE2b-256 checksum
How to use checksums
6dc6000d9eb31de39a6550d665e50b37764f454601a83fcb55f0d9240ee650bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / ofdrw_rs-0.3.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl

Download URL ofdrw_rs-0.3.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
Size 11.8 MB
Tags Linux glibc 2.35+ ARM64 Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e7e02b30971747672bf683a1e4eb32a2e97dfdc6057cf0aba6713de7936b42eb
BLAKE2b-256 checksum
How to use checksums
84d8e95a3eece9917372f43c04201744c3e4108a92d1765f9868350031df470b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / ofdrw_rs-0.3.0-py3-none-macosx_11_0_arm64.whl

Download URL ofdrw_rs-0.3.0-py3-none-macosx_11_0_arm64.whl
Size 11.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
27d682d3edf6834763f588b54b85432aef17b0f6150a9aea8573b08a85095c31
BLAKE2b-256 checksum
How to use checksums
cd2f9ad0fab83b9fc0ce17d68503593c78293c3ebbe63fe9252457c086341e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / ofdrw_rs-0.3.0-py3-none-macosx_10_13_x86_64.whl

Download URL ofdrw_rs-0.3.0-py3-none-macosx_10_13_x86_64.whl
Size 11.9 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
84d1171ba2288cfb3fb250d677ee926187a0b2360203ddf669e081abcd8cfe44
BLAKE2b-256 checksum
How to use checksums
4a6523af2edf1bfed2c82572a965062e7a8d739c104abd1f796154a4a3efc3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for ofdrw-rs 0.3.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.

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.

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