Skip to main content

Convert PDF to SVG in-memory using poppler and cairo

Project description

pdf_to_svg

In-memory PDF/SVG conversion using poppler, librsvg, and cairo.

from pdf_to_svg import svg_to_pdf, pdf_to_svg

pdf = svg_to_pdf(b'<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="red"/></svg>')
svg = pdf_to_svg(pdf, page=0, unit="mm")[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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pdf_to_svg-0.1.1-cp312-abi3-win_amd64.whl (9.4 MB view details)

Uploaded CPython 3.12+Windows x86-64

pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl (18.2 MB view details)

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

pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_aarch64.whl (17.1 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_arm64.whl (11.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ ARM64

File details

Details for the file pdf_to_svg-0.1.1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pdf_to_svg-0.1.1-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.15

File hashes

Hashes for pdf_to_svg-0.1.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f66f4f19d251f1472889e7063cee95eb0179272647637569674da8d7ff5e2c33
MD5 acf88caef234209aa4a45385331f9202
BLAKE2b-256 58e3e9aed2d2fd0088e675de5f105cdf5da16b5121dc3989180570ae73c6aec9

See more details on using hashes here.

File details

Details for the file pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f13c9e1cb40522236645ba3d5cbb63e85e98e7c8a2ff31ffbb65920e8de63990
MD5 3a6c4d4dc93b28d52cd5d31d7ebbc324
BLAKE2b-256 a1d4f15f39b2075357cc6e087a369d7bb5adce59be1076b524b534950dbc85f4

See more details on using hashes here.

File details

Details for the file pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pdf_to_svg-0.1.1-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85dabeec2b351e7addb68ef7c5f8e38198ebe9e99f06716d7d716fc0fb8edacc
MD5 4b8537c44a60bd823aeff14ae237f73d
BLAKE2b-256 c551eb5e38ee673b2a8837620fb419551e21ccd01d58993fd5486ca786148b77

See more details on using hashes here.

File details

Details for the file pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 ae6fc112b2259b77227688edfafddde9729045043bcbdeaac737d3040b86b635
MD5 5757590690dafc254aa828a1d87d368d
BLAKE2b-256 5432706ff1400bd982afe8475bc7bc6c3e094bbd855c9264b687b9bd72ef5513

See more details on using hashes here.

File details

Details for the file pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pdf_to_svg-0.1.1-cp312-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0fa91022c6eb393f8567c723a4f677f5f5e4ef0addef19bd78f133a2aa16d88b
MD5 a10b1dcc494cf5e44db4e132f966213c
BLAKE2b-256 307e6baef776acab2c12330dd02f83488f44e17329ca7978a603a52f999abf10

See more details on using hashes here.

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