SVG Image Converter ignores alignment-baseline

Hi
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()
        .Width(100)
        .Height(100)
        .Fill(System.Drawing.Color.LightGray)
        .Build(document);

    var line = new SVGLineElementBuilder()
        .Y1(50)
        .Y2(50)
        .X2(100)
        .X1(0)
        .Stroke(System.Drawing.Color.Black)
        .Build(document);

    var text = new SVGTextElementBuilder()
        .AddContent("This is not a drill")
        .Y(50)
        .AlignmentBaseline(AlignmentBaseline.Central)
        .Build(document);

    document.RootElement.AppendChild(rectangle);
    document.RootElement.AppendChild(line);
    document.RootElement.AppendChild(text);

    document.Save($"{tempPath}.svg");

    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");

@b000gt

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.

The issues you have found earlier (filed as SVGNET-327) have been fixed in this update. This message was posted using Bugs notification tool by vdeviatov