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.2.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.2.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.2.0
File Actions
ofdrw_rs-0.2.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for ofdrw_rs-0.2.0-py3-none-win_arm64.whl
ofdrw_rs-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for ofdrw_rs-0.2.0-py3-none-win_amd64.whl
ofdrw_rs-0.2.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.2.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
ofdrw_rs-0.2.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 ofdrw_rs-0.2.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
ofdrw_rs-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for ofdrw_rs-0.2.0-py3-none-macosx_11_0_arm64.whl
ofdrw_rs-0.2.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for ofdrw_rs-0.2.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 68.6 MB

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

Download URL ofdrw_rs-0.2.0-py3-none-win_arm64.whl
Size 10.5 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
3cd8a15f1d0ec58424d9573ed69302bbe7143977cac9c6c485179c076390c8f7
BLAKE2b-256 checksum
How to use checksums
75d23af869d572b086b3fe184c4facc410464bff31d56a11fce2ecbc34d2bb1f
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.2.0-py3-none-win_amd64.whl

Download URL ofdrw_rs-0.2.0-py3-none-win_amd64.whl
Size 11.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0b604b8ddba1bb21b528afbd4428a4eab2842318cf81622544da42e49c2a013e
BLAKE2b-256 checksum
How to use checksums
0f1553c2fc461c83eb19a61c9649837c5bee5530b4224b6c042c4d99dcf58790
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.2.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl

Download URL ofdrw_rs-0.2.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
Size 12.2 MB
Tags Linux glibc 2.35+ x86-64 Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
52260aa7afd1723ed08b7445db5fcdfaee97527568aaa23cc76a27b03e0e65d1
BLAKE2b-256 checksum
How to use checksums
669c4d620560f057f154037017a161d476a3ca67a90524d5375da75bc35dcbef
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.2.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl

Download URL ofdrw_rs-0.2.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
Size 11.7 MB
Tags Linux glibc 2.35+ ARM64 Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9eff8e445ceeaeffbaf5eacff7dfc5f5faf79e899cafae9bfb7e471b7cd7109a
BLAKE2b-256 checksum
How to use checksums
06faba3e456566bdc783334137c9ded3033698cd08f49311786f0ce87fe0b5f0
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.2.0-py3-none-macosx_11_0_arm64.whl

Download URL ofdrw_rs-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 11.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c3419aacc67960c7c6860a589c65a92cf93023ea1f50b3373478490eee88bae6
BLAKE2b-256 checksum
How to use checksums
d078f3969cbd48c33f80dbf2140c9611610c3637cbcf3b13082c3354989b4d4e
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.2.0-py3-none-macosx_10_13_x86_64.whl

Download URL ofdrw_rs-0.2.0-py3-none-macosx_10_13_x86_64.whl
Size 11.7 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
05d5073bd4805ef705ea79c8a0b80e0d0865c532e2dee2f6fa51b8c423a999f2
BLAKE2b-256 checksum
How to use checksums
70949524f4c86d73414a48e18f786fb633b346cbc3391e15d9f064a7c72e1fb0
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.2.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