Incorrect SVG rendering

Incorrect rendering while inserting an svg image:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage("donut.svg");
doc.save("svgInsertAspose.pdf", options);

When inserting the same image “donut.svg” directly in Word (or e.g. in a Browser), it will render correct --> svgInsertWord.docx.

donut.svg

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="marks" width="160" height="160" viewBox="0 0 160 160"><g fill="none" stroke-miterlimit="10" transform="translate(0,0)"><g class="mark-group role-frame root" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h160v122h-160Z"></path><g><g class="mark-group role-scope masterGroupForSizing" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z"></path><g><g class="mark-arc role-mark markSlices" role="graphics-symbol" aria-roledescription="arc mark container"><path transform="translate(80,61)" d="M3.7351727373994275e-15,-61A61,61,0,1,1,-3.7351727373994275e-15,61A61,61,0,1,1,3.7351727373994275e-15,-61M0.1927871505932301,-30.499390700710173A30.5,30.5,0,1,0,-0.1927871505932301,30.499390700710173A30.5,30.5,0,1,0,0.1927871505932301,-30.499390700710173Z" fill="#00562a"></path><path transform="translate(80,61)" d="M0.3855743011864602,-60.998781401420345A61,61,0,0,1,0.41569304456103867,-60.99858358431533L0.20784652228051934,-30.499291792157663A30.5,30.5,0,0,0,0.1927871505932301,-30.499390700710173Z" fill="#1f7c34"></path></g><g class="mark-text role-mark markSliceLabelsInsideText" role="graphics-object" aria-roledescription="text mark container"><text text-anchor="start" transform="translate(80.38557430118647,0.0012185985796548948) rotate(450.3621627419217) translate(4,10)" font-family="'Credit Suisse Type SCh Light','Credit Suisse Type Light'" font-size="7px" fill="white">99.99</text><text text-anchor="start" transform="translate(80.41569304456104,0.0014164156846732112) rotate(450.39045313728786) translate(4,10)" font-family="'Credit Suisse Type SCh Light','Credit Suisse Type Light'" font-size="7px" fill="white"></text></g><g class="mark-text role-mark markSliceLabelsOutsideText" role="graphics-object" aria-roledescription="text mark container"></g><g class="mark-text role-mark markSliceLabelsInsideCenterText" role="graphics-object" aria-roledescription="text mark container"></g><g class="mark-rect role-mark" role="graphics-symbol" aria-roledescription="rect mark container"><path d="M80,0h1v30.5h-1Z" fill="#f1f2f2" opacity="0"></path></g><g class="mark-group role-scope" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z"></path><g></g><path class="foreground" aria-hidden="true" d="" display="none"></path></g></g></g><path class="foreground" aria-hidden="true" d="" display="none"></path></g></g><g class="mark-group role-legend" role="graphics-symbol" aria-roledescription="legend" aria-label="Symbol legend for fill color with 2 values: AAA, Others"><g transform="translate(0,140)"><path class="background" aria-hidden="true" d="M0,0h39v20h-39Z" pointer-events="none"></path><g><g class="mark-group role-legend-entry"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"></path><g><g class="mark-group role-scope" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h39v10h-39Z" pointer-events="none" opacity="1"></path><g><g class="mark-symbol role-legend-symbol legendSymbol" clip-path="url(#clip1)"><path transform="translate(5,5)" d="M-4.5,-4.5h9v9h-9Z" fill="#00562a" stroke="#00562a" stroke-width="1" opacity="1"></path></g><g class="mark-text role-legend-label legendLabel" pointer-events="none"><text text-anchor="start" transform="translate(14,7)" font-family="'Credit Suisse Type SCh Light','Credit Suisse Type Light'" font-size="7px" fill="#000" opacity="1">AAA</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"></path></g><g transform="translate(0,10)"><path class="background" aria-hidden="true" d="M0,0h39v10h-39Z" pointer-events="none" opacity="1"></path><g><g class="mark-symbol role-legend-symbol legendSymbol" clip-path="url(#clip2)"><path transform="translate(5,5)" d="M-4.5,-4.5h9v9h-9Z" fill="#1f7c34" stroke="#1f7c34" stroke-width="1" opacity="1"></path></g><g class="mark-text role-legend-label legendLabel" pointer-events="none"><text text-anchor="start" transform="translate(14,7)" font-family="'Credit Suisse Type SCh Light','Credit Suisse Type Light'" font-size="7px" fill="#000" opacity="1">Others</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"></path></g></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"></path></g></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"></path></g></g></g><path class="foreground" aria-hidden="true" d="" display="none"></path></g></g></g><defs><clipPath id="clip1"><rect x="0" y="0" width="39" height="10"></rect></clipPath><clipPath id="clip2"><rect x="0" y="0" width="39" height="10"></rect></clipPath></defs></svg>

@bmpi
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): WORDSNET-25206

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