ofdrw-rs for Python
Python 3.10+ bindings to the Rust OFD core through CFFI. Install from PyPI:
python -m pip install ofdrw-rs==0.1.0
The wheel includes the native library; a Rust toolchain is not needed.
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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 46.1 MB
Release files / ofdrw_rs-0.1.0-py3-none-win_arm64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-win_arm64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
a4afad936d7d4bf985001d5c364425e1df3b57fe29ebc18df4f9be3defdcad3a
|
|
BLAKE2b-256 checksum How to use checksums |
ec393e57f038d6045601cef074e4d1fc2bc994e531e666416e1e45f72be90650
|
| 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.1.0-py3-none-win_amd64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6d62855f7499ff1d5dc83d171c74dd5450c791e972d5fbf49a02a67b00d06609
|
|
BLAKE2b-256 checksum How to use checksums |
8f035530073ee406522af42049d39be43ae943465aff5d763b245290b394f648
|
| 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.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-manylinux_2_35_x86_64.manylinux_2_39_x86_64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | Linux glibc 2.35+ x86-64 Linux glibc 2.39+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
bd7cd467b07d3c0766235a9eeb09764fa626fb1a498312f11466e8470ec338f4
|
|
BLAKE2b-256 checksum How to use checksums |
763abe451b9122e8675f30584d0924456f6f63c577536669beeed540a13a5f9a
|
| 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.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-manylinux_2_35_aarch64.manylinux_2_39_aarch64.whl |
|---|---|
| Size | 7.9 MB |
| Tags | Linux glibc 2.35+ ARM64 Linux glibc 2.39+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
fcc52c1afd3e726bf65d0a7a2717aa031ca706fc8afc7466690e75aa5406ef2d
|
|
BLAKE2b-256 checksum How to use checksums |
6757cfd8401bd9b92e09a5f8335de8e4eba2d63e7ce0a4dcd362d892692ab821
|
| 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.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
474ab8f974673673930ec28a3a3bad75c7ab2c73aef023a656bc26e8724b7c3f
|
|
BLAKE2b-256 checksum How to use checksums |
79f3516dc1a5d3b18c61523176fbb610711b46100c8a2d1526f93ca3a43266e1
|
| 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.1.0-py3-none-macosx_10_13_x86_64.whl
| Download URL | ofdrw_rs-0.1.0-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
598704dd98715a20ddc14cfc4b41bfc1e73240ccb924b9ff5e0a9f867991b44a
|
|
BLAKE2b-256 checksum How to use checksums |
a515d98a89b8aa03e5aa3ea6a8f7e6697f9ca788f6bba0c5b429f7c03577de83
|
| 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.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.
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.