We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Equation parts hidden when RenderingMode Vector used to save image

Hi,
When saving an image using the following code, the image generated has parts hidden by the large brackets. How can I render the image so that all parts are visible?
Using Bitmap rendering generates a low quality image so that is not the solution.

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);
options.PaperColor = Color.Transparent;
options.MetafileRenderingOptions.RenderingMode = MetafileRenderingMode.Vector;
shapeNode.GetShapeRenderer().Save(fullPath, options);

I have attached the Word document and the Image png that was generated.

Regards,
Martin Scott.

Hi George,


Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 15.11.0 and have not found the shared issue. Please use Aspose.Words for .NET 15.11.0. We have attached the output Png with this post for your kind reference.

Document doc = new Document(MyDir + “Bracket+equation.docx”);<o:p></o:p>

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);

options.PaperColor = Color.Transparent;

options.MetafileRenderingOptions.RenderingMode = MetafileRenderingMode.Vector;

shape.GetShapeRenderer().Save(MyDir + "Out.png", options);