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.3.tar.gz (44.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.3-cp39-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.9+Windows x86-64

docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl (1.1 MB view details)

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

docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ ARM64

docquill_rust-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

docquill_rust-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: docquill_rust-0.1.3.tar.gz
  • Upload date:
  • Size: 44.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.3.tar.gz
Algorithm Hash digest
SHA256 787fef7af0853af486bf61b3f51d72a22f4142e70143d65a29f7f6721f587994
MD5 1be3a444262003cb9562be4c1bc27413
BLAKE2b-256 913e1c8a846363a3ef865d5c268dc91445d173dec1465f92dbd42a13472fd697

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3.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.3-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2fb7c2aa46e16f33b9b37ab6b454504b1857f8dcb75e7308cc196e41ddfd2c07
MD5 f41f8513ffa6175a762107be0f8efc93
BLAKE2b-256 053df77ff4f8103060793b2ba82152ac8100527ec53bcd475124090ac4330ab8

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3-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.3-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 de4b826f5e1597e4991cbc741a5359c71b0ad96125fab5cfff94ab3fe49af426
MD5 f26378b0f95f9669457e8b7dcfe6d403
BLAKE2b-256 5a86b81ea6c98ace03a6c0ec9d5e7e929eed9635a85dc06b26d61001083d6172

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_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.3-cp39-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 9b2b42f6760dd2a061511acc36da1245c2126aa5892bcff7822ac1b608062cfa
MD5 0d0bb0118e7762734588847a88666fa9
BLAKE2b-256 9a970b9e36f2dca7ddbcb1bd86b8010555f4778c2d180b4703b7b54e5585cc73

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3-cp39-abi3-manylinux_2_34_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.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c836a18cde38bba5324cb7776b8a86ac50afd6588dba071ed03b49f5d8b34ccf
MD5 a8466175cf3a5b6c0041eff37259c198
BLAKE2b-256 c3db9c181bc36e272fe493f2c8e2c07edac1f152ec4b91160ee623d02c332f7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3-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.

File details

Details for the file docquill_rust-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for docquill_rust-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8b8baa37620015d58560f07798ded4a69076ffc0082c11314a6105bd4679a5fc
MD5 b733de8ce1f15b98d9d5d96c78a328bc
BLAKE2b-256 4509bd7c3bccb47ba29d569c616268304226bee2864969cd040ccfa6e9d3afae

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill_rust-0.1.3-cp39-abi3-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.

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