Aspose.SVG for Python via .NET Documentation

Aspose.SVG for Python via .NET product icon

Aspose.SVG for Python via .NET is a Python API for creating, editing, inspecting, converting, rendering, drawing, and vectorizing SVG documents. Use it to automate SVG DOM editing, file conversion, SVG drawing, CSS selector workflows, image vectorization, text vectorization, filters, colors, paths, and transformations in Python applications or scripts.

Python SVG Development Topics

Convert SVG to PDF in Python

The example below shows a common Aspose.SVG for Python via .NET workflow: load an SVG document, create PDF save options, and write a PDF file.

1from aspose.svg import SVGDocument
2from aspose.svg.converters import Converter
3from aspose.svg.saving import PdfSaveOptions
4
5options = PdfSaveOptions()
6
7with SVGDocument("document.svg") as document:
8    Converter.convert_svg(document, options, "document.pdf")

For more output formats and save options, open the SVG conversion guides linked above.

Aspose.SVG for Python via .NET Resources

Aspose.SVG also provides free online SVG applications for conversion, merging, vectorization, sprite creation, Base64 encoding, and SVG text vectorization. Use the web apps for quick manual tasks, and use Aspose.SVG for Python via .NET when you need repeatable SVG automation in Python.

SVG Free Online Applications