Browse our Products
Aspose.SVG for Python via .NET 25.8 Release Notes
This page contains release-note information for Aspose.SVG for Python via .NET 25.8.0 (August 2025).
Major Features
Boolean Geometry Operations for SVG Shapes
- New
combine
method on SVG geometry elements:
Perform boolean path operations between any twoSVGGeometryElement
instances and get the result as a new<path>
element (not auto-appended to the DOM). - Supported operators via
BooleanPathOp
:UNION
,DIFFERENCE
,INTERSECTION
,EXCLUSION
(XOR). - Backend requirement:
Boolean path operations require the SkiaSharp backend. Install theAspose.SVG.Drawing.SkiaSharp
package; otherwise aNotSupportedException
will be thrown.
Enhancements and Fixes
SVGNET-505:
Added boolean geometry operations (Union
,Difference
,Intersection
,Exclusion
) for allSVGGeometryElement
types. Thecombine
method returns a new<path>
representing the merged result, enabling advanced shape composition.SVGNET-510:
Fixed incorrect text positioning caused by miscalculateddx
/dy
values. The text layout algorithm now renders text consistently and correctly, preventing overlaps or broken visual output.
Public API Changes
Added APIs
Enumeration
aspose.svg.rendering.BooleanPathOp
Fields:UNION
,DIFFERENCE
,INTERSECTION
,EXCLUSION
.
Methods (new
combine
overload across geometry types)aspose.svg.svggeometryelement.SVGGeometryElement.combine(geometry_element, op)
aspose.svg.svgpathelement.SVGPathElement.combine(geometry_element, op)
aspose.svg.svgrectelement.SVGRectElement.combine(geometry_element, op)
aspose.svg.svgcircleelement.SVGCircleElement.combine(geometry_element, op)
aspose.svg.svgellipseelement.SVGEllipseElement.combine(geometry_element, op)
aspose.svg.svglineelement.SVGLineElement.combine(geometry_element, op)
aspose.svg.svgpolygonelement.SVGPolygonElement.combine(geometry_element, op)
aspose.svg.svgpolylineelement.SVGPolylineElement.combine(geometry_element, op)
Method behavior (summary):
- Returns a new
SVGPathElement
whosed
attribute encodes the boolean result in root<svg>
user space (CSS px). - Requires both geometries to belong to the same document.
- Throws
ArgumentNullException
ifgeometry_element
isNone
,InvalidOperationException
if the element has no owner document, andNotSupportedException
when the SkiaSharp backend is unavailable.
For code examples and further migration assistance, consult our documentation or post on the Aspose support forum.