Getting Started with Aspose.SVG for Python via .NET

Quick Answer: Install Aspose.SVG for Python via .NET with pip install aspose-svg-net, then use SVGDocument to create, load, inspect, edit, save, and convert SVG documents. Start with installation, supported formats, licensing, and the basic operations tutorials.

Start Here

Aspose.SVG for Python via .NET is a document-processing API for SVG workflows in Python. It provides DOM access for SVG creation and editing, conversion to fixed-layout and raster formats, rendering options, image vectorization, text vectorization, and navigation through SVG elements with CSS selectors or XPath.

This chapter is a starting point for setup and product orientation. Use the pages below to install the package, check requirements, understand licensing, and move into practical examples.

TaskArticleWhat it covers
Understand the productProduct OverviewMain API capabilities, common workflows, support resources
Check available capabilitiesFeatures ListDOM, conversion, rendering, vectorization, navigation, filters, and colors
Check input and output formatsSupported File FormatsSVG input and supported output formats such as PDF, XPS, PNG, JPG, BMP, TIFF, and GIF
Install the packageInstallationPyPI package name, pip commands, first Python example
Apply or evaluate a licenseLicensingEvaluation limits, temporary license, file license, metered license
Check platform requirementsSystem RequirementsPython version, operating systems, package metadata, development tools

First Workflow After Installation

A typical first workflow starts with creating or loading an SVG document, then saving or converting it. These articles form the shortest path from setup to useful output:

  1. Install the package with Installation.
  2. Create or load an SVG with Create SVG File.
  3. Inspect or edit the document with Navigate SVG or Edit SVG File.
  4. Save the result with Save SVG File.
  5. Export to another format with Convert SVG Files in Python.

Core API Areas

AreaMain APIs and topicsLearn more
SVG documentsSVGDocument, DOM elements, attributes, save workflowsBasic SVG Operations
ConversionConverter.convert_svg(), ImageSaveOptions, PdfSaveOptionsConvert SVG Files
Navigation and editingCSS selectors, XPath, DOM traversal, attributesNavigate SVG
VectorizationImageVectorizer, text vectorization, stencil-style outputVectorization

FAQ

How do I install Aspose.SVG for Python via .NET?

Use pip install aspose-svg-net in your terminal or command prompt.

What is the main class for SVG documents?

SVGDocument is the main class for creating, loading, editing, navigating, and saving SVG documents.

Can I convert SVG to PDF or PNG in Python?

Yes. Use Converter.convert_svg() with PdfSaveOptions for PDF or ImageSaveOptions for raster image output.

Can I try the product before purchasing?

Yes. You can use the evaluation version, request a temporary license, or apply a purchased license as described in the Licensing article.

What is the recommended learning path for Aspose.SVG in Python?

Start with installation, then create or load an SVG file, inspect or edit the SVG DOM, save the result, and finally convert SVG to PDF, PNG, or other formats when needed.

Online SVG Applications

Aspose.SVG also provides free online SVG applications for quick checks and no-code workflows. You can try SVG conversion, image vectorization, SVG merging, sprite generation, Base64 encoding, and text vectorization in a browser before implementing the same workflow in Python.

Free online SVG applications