document-svg for Python
Python bindings for the Rust document-svg converter.
Install
Requires Python 3.10+ (GIL-enabled CPython). In your virtual environment:
python -m pip install document-svg
Install document-svg, but import document_svg. Matching prebuilt wheels do
not require Rust. Prebuilt wheels cover Windows, macOS and glibc-based Linux on
x64 and ARM64. Alpine/musl installations build from source and need Rust plus
native build tools; this release does not ship musllinux wheels.
This package provides a Python API, not the docsvg CLI.
Convert a document
from document_svg import convert
report = convert("slides.pptx", "output", jobs=4)
print(report["page_count"])
fidelity = convert(
"input.pdf",
"output-fidelity",
outline_embedded_pdf_text=True,
)
Package SVG pages as vector images in PPTX, DOCX or XLSX:
from document_svg import reverse
report = reverse("svg-pages", "slides.pptx")
print(report["page_count"])
The input is a single SVG or a directory of SVG pages. This does not reconstruct the original paragraphs, cells, formulas or other Office semantics.
Inspect the returned warnings before relying on conversion fidelity. Output directories for conversion must be new or empty.
Build from source
Build a local wheel from this directory:
python -m pip wheel --no-deps --wheel-dir dist .
Publish the generated wheels for each supported operating system and CPU to PyPI. End users do not need a Rust toolchain when a matching wheel is present.
Release files for document-svg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| document_svg-0.1.1.tar.gz | 502.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| document_svg-0.1.1-cp310-abi3-win_arm64.whl | CPython 3.10 | abi3 | Windows ARM64 | Details |
| document_svg-0.1.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| document_svg-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| document_svg-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details |
| document_svg-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl | CPython 3.10 | abi3 | macOS 11.0+ x86-64 | Details |
| document_svg-0.1.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 24.2 MB
Release files / document_svg-0.1.1.tar.gz
| Download URL | document_svg-0.1.1.tar.gz |
|---|---|
| Size | 502.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dda3f900dfe128142e4c7b889d839448168935f803e40bca3d9cb880f2194c99
|
|
BLAKE2b-256 checksum How to use checksums |
fb4f4cf8982eb15673c3e82bb08dd8cca8c7aabefaf7611ef5613d1143087efb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-win_arm64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
dd5b91819de145ea03fd7cddc352d1eba822ff0965b98c3b5df0185ec6c16094
|
|
BLAKE2b-256 checksum How to use checksums |
8fa670cd3f80cfc12ce18675cb264cabc563ff733d9eb7945f498dfc03896eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-win_amd64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8abea6611142618c5d3fcf8a528c4ded969fd74eec193db42e3e874f7f851811
|
|
BLAKE2b-256 checksum How to use checksums |
ed116d766b26a100e8a83023c2ae8a13d9e0d38200d6d09e5d07b314ef6f552f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
52e63a1d611e17a530cecc2bb9fe2bf57c2d6519dd96dfa29ce02c1a25f5d983
|
|
BLAKE2b-256 checksum How to use checksums |
fd4f24fd94a1a4caf32ba3fb7195bd8caa337e14861f2e287817b5b2b744bfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4b95903640721a73778f93115ebc7c250910a81b16d0b8cf398e193af6c55799
|
|
BLAKE2b-256 checksum How to use checksums |
ac97b70ab9026276c1b8d999f7d513e9de640ca49226b2198f619aac146d1f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
b29d744816036bb0929ec3430e886b30490b40abe3dc40c9b49d390488be98fc
|
|
BLAKE2b-256 checksum How to use checksums |
7aba17595fad3e446915bf3a8c3df6e32e25687bc0c84b590ea16357dd838dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / document_svg-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | document_svg-0.1.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
718da70f5684f544c8af0ab00ecc1e00534a0716d038a832e423da5244dd0e9f
|
|
BLAKE2b-256 checksum How to use checksums |
e6a6b1f9acb8098684cd204ee8ccd307ecde03ff36f5da14eb92fa225c13c29f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log