Skip to main content

High-performance Rust components for DocQuill: PDF renderer and EMF/WMF converter

Project description

DocQuill Rust Components

PyPI version License

High-performance Rust components for DocQuill:

  • 🖨️ PDF Renderer - Fast PDF generation using pdf-writer
  • 🖼️ EMF/WMF Converter - Convert Windows metafiles to SVG

Installation

pip install docquill-rust

Or install with the main package:

pip install docquill[rust]

Requirements

  • Python 3.9+
  • No Rust compiler required - pre-built wheels are available for:
    • Linux (x86_64, aarch64)
    • macOS (Intel x86_64, Apple Silicon arm64)
    • Windows (x86_64)

Features

PDF Renderer

High-performance PDF generation as an alternative to ReportLab:

from docquill import Document

doc = Document.open("document.docx")

# Use Rust backend (automatically detected when installed)
doc.to_pdf("output.pdf", use_rust=True)

Benefits:

  • 2-5x faster PDF generation
  • Lower memory usage
  • Full Unicode support (DejaVu Sans embedded)

EMF/WMF Converter

Convert Windows Enhanced Metafile (EMF) and Windows Metafile (WMF) to SVG:

import docquill_rust

# Convert file
docquill_rust.convert_emf_to_svg("input.emf", "output.svg")

# Convert bytes to SVG string
svg_content = docquill_rust.convert_emf_bytes_to_svg(emf_bytes)

Supported formats:

  • EMF (Enhanced Metafile)
  • EMF+ (GDI+ Enhanced Metafile)
  • WMF (Windows Metafile)
  • WMF with embedded EMF

Performance: ~50x faster than Java-based converters (FreeHEP/Apache POI)

Building from Source

If you need to build from source (e.g., for unsupported platforms):

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install maturin
pip install maturin

# Build and install
cd packages/docquill_rust
maturin develop --release

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docquill_rust-0.1.5.tar.gz (48.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

docquill_rust-0.1.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl (1.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

docquill_rust-0.1.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl (1.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

docquill_rust-0.1.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded PyPymacOS 10.12+ x86-64

docquill_rust-0.1.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl (1.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

docquill_rust-0.1.5-pp37-pypy37_pp73-manylinux_2_28_aarch64.whl (1.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

docquill_rust-0.1.5-cp39-abi3-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9+Windows x86-64

docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

docquill_rust-0.1.5-cp39-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file docquill_rust-0.1.5.tar.gz.

File metadata

  • Download URL: docquill_rust-0.1.5.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docquill_rust-0.1.5.tar.gz
Algorithm Hash digest
SHA256 615483e3ce46dd4fa256bae25b3af8d649e3002898d7207e358a21f59278c0b5
MD5 d8a82fba02a4fdaadbd29735206a8e21
BLAKE2b-256 f700d5d237a279e9e1cf376d7e76f3115611bfef5083201063d9ef1105a57080

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5.tar.gz:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4accb45cb997589862c3654df89744e2862b90835fd7f5f854c5726ad2f8c95
MD5 b180d6fa605c237ef309662bd2b41e19
BLAKE2b-256 de1653584011a70de229dde2fac29c20e9ea722f0be884ac8726bd48c72679a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cf8d77023d2f11fa82eac50712d38fa880cd56663b1dfd6e27f74798cb44cf4c
MD5 e9f23f2113f7dbadf853e8835d2b7249
BLAKE2b-256 b3edfb2a15b6f8d92346548cc5ae629087e6413922cad1d7dce0be64b042364e

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8a1923486d7d9588f1b7bae05ec4fb64a234ac7bab37460667c759c6bc9dca4c
MD5 f54770c55161ca8a1ee9792a2aaad9a4
BLAKE2b-256 4d42f015a89fbff2809fe610104409d9c064d010bc534d510802696bb9a4512e

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2665b0258867c717bd683c28738412f907024b0ced6eec8ee4d17885dd31b113
MD5 10edf6b1596e53c475676790207fa58c
BLAKE2b-256 b1665d0841197294c75a5e2fa12eb157a3e94591c05ec9c4e3a9387412e1bc59

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-pp37-pypy37_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-pp37-pypy37_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9c6919c2a0b9a12b4e6fafebdcef8a9fed2b39470793d2fb6b4a51c3e34ac18e
MD5 1bce30ef0958b1c977dca5fa78bd0d73
BLAKE2b-256 8bc528778db465b538b1bfb7a0b219e4e1e7f1e4563f1679304320e3bfe7528b

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-pp37-pypy37_pp73-manylinux_2_28_aarch64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e9949b43c3033e7d2203dd5bd3e28ad3610b265a18029d481cd5b4308bcb972e
MD5 2640c9ca0bea2110816f1bd980114295
BLAKE2b-256 c1f339cae8271faadb3c96bf02d0537ff9ca4c3dd2758805071b5e1a818784bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-cp39-abi3-win_amd64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab8bcec8f7d5cccf3538e085f2028fd6ca7c7f792b8a740f0851c95974dab331
MD5 be382b6bcbcb616b66758b20d9ad8a28
BLAKE2b-256 1dde02b3fce53ef6e35eaae9afe8242837f6b492ff81124f8f6aa072bdbd532c

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ee34d24f0aad6a44f275f58959265e71bf0c6c0311fbfb51b67ddb35a871645
MD5 cd9c205153814b6bcd3ca76ca0554f67
BLAKE2b-256 9d375030fb1c0f0f5961cddd51afe546a85b6aca4b8fb7e2a7a629069f8f536e

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-cp39-abi3-manylinux_2_28_aarch64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill_rust-0.1.5-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fa513bf8a8e926a98626c22f2f81a505f5e1b7a88c4d12285747e9cf9a6b387
MD5 1de600ec0dea9bcd953f73aaaadbcf3a
BLAKE2b-256 ba8fe02d636fc867b3913d6628ec8133df1ab6059f528a0f6435a81eb1413474

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.5-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: build-rust.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page