Free Support Forum - aspose.com

Incorrectly rendered text from shape when rendering slide to SVG format

When rendering the first slide of the attached presentation to SVG format, the text ‘moon’ inside the moon shape is incorrectly placed outside the viewbox of the SVG file, and so does not show when the SVG output is viewed.

The text is also missing from a thumbnail rendering of the slide using the GetThumbnail method.

SVGOptions opts = SVGOptions.WYSIWYG;
opts.VectorizeText = false;
opts.MetafileRasterizationDpi = 150;

Presentation ppt = new Presentation(“TestLotsOfShapes2.ppt”);
using (FileStream fs = new FileStream(“shapes.svg”, FileMode.Create))
{
ppt.Slides[0].SaveToSVG(fs, opts);
}

var bmp = ppt.Slides[0].GetThumbnail(new Size(800, 600));
bmp.Save(“shapes.jpg”, ImageFormat.Jpeg);

In the attached svg file output you can see following block which contains the text ‘moon’ but is pushed out of view by the very large translation transformation.


moon


The text ‘moon’ is also displayed one character per line. It’s possible to see this by editing the value ‘6545.6’ manually to something like ‘2000’ which brings the text back onto the page and then viewing the svg file.

thanks in advance for looking into this issue.

Robin

Hi Robin,


I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-33962 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,