Hello.
We have identified an issue in Aspose.PDF where certain SVG files have stopped rendering properly when converting HTML to PDF.
Sample C# app snippet to reproduce below. We are on .NET 8, if that matters.
This works well and produces similar results as Chrome browser up to version 24.5.1, and renders corrupted starting from 24.6.0.
Thank you in advance and please let me know if you need any more details on this.
string html = @"
<html>
<body>
<div style='width: 300px; height: 300px; margin: auto;'>
<svg class='donut' viewBox='0 0 50 50'>
<circle cx='20' cy='20' r='16' fill='transparent' stroke-width='5' stroke='#f2f2f2'></circle>
<circle cx='20' cy='20' r='16' fill='transparent' stroke-width='5' stroke='#DA291C' stroke-dasharray='46.37059 53.62941' stroke-dashoffset='25'></circle>
<circle cx='20' cy='20' r='16' fill='transparent' stroke-width='5' stroke='#0076A8' stroke-dasharray='0.001 100' stroke-dashoffset='-21.47059'></circle>
<circle cx='20' cy='20' r='16' fill='transparent' stroke-width='5' stroke='#A2DBFF' stroke-dasharray='40.48824 59.51176' stroke-dashoffset='-21.47059'></circle>
<circle cx='20' cy='20' r='16' fill='transparent' stroke-width='5' stroke='#97999B' stroke-dasharray='12.84118 87.15882' stroke-dashoffset='-62.05883'></circle>
</svg>
</div>
</body>
</html>";
using var pdfDocument = new Aspose.Pdf.Document();
var mainPage = pdfDocument.Pages.Add();
mainPage.Paragraphs.Add(new Aspose.Pdf.HtmlFragment(html));
pdfDocument.ProcessParagraphs();
pdfDocument.Save("out.pdf");