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,