SVG Image Converter ignores alignment-baseline

I was wondering why the alignment-baseline and the dominant-baseline attributes are ignored when converting to an image.

image.png (56.6 KB)
(left: png, middle: svg, right: pdf)

Code to recreate the problem:

using Aspose.Svg;
using Aspose.Svg.Builder;
using Aspose.Svg.Converters;
using Aspose.Svg.Saving;

var tempPath = Path.Combine(Path.GetTempPath(), "alignment_baseline_test");

using (var document = new SVGDocument())
    var rectangle = new SVGRectElementBuilder()

    var line = new SVGLineElementBuilder()

    var text = new SVGTextElementBuilder()
        .AddContent("This is not a drill")



    var options = new ImageSaveOptions();
    Converter.ConvertSVG(document, options, $"{tempPath}.png");

    var pdfOptions = new PdfSaveOptions();
    Converter.ConvertSVG(document, pdfOptions, $"{tempPath}.pdf");

Console.WriteLine($"SVG at {tempPath}.svg");
Console.WriteLine($"PNG at {tempPath}.png");
Console.WriteLine($"PNG at {tempPath}.pdf");


We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SVGNET-327

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.