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

Free Support Forum - aspose.com

Rendering highlighted shapes

Hi,


We are extracting graphic objects from the Word document using ShapeRenderer.Save(). However, highlighted shapes are saved to .jpg as not highlighted. It is especially noticeable with MS Excel 97-2003 Worksheet objects.

Is there any way in Aspose.Words to save a graphic OLE object to ,jpg exactly as it appears in the document?

foreach (Shape shape in shapes)
{
if ((shape.HasImage))
{
ShapeRenderer renderer = shape.GetShapeRenderer();
ImageSaveOptions imageOptions = new ImageSaveOptions(SaveFormat.Jpeg);
renderer.Save(imageFileName, imageOptions);

}
}

Thank you

Hi there,

Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v15.6.0) from here and let us know how it goes on your side. If the problem still remains, please attach your input Word document here for testing. I will investigate the issue on my side and provide you more information.

Hello,

we are using the latest 15.6.0.0

Thanks

Hi there,

Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

Hello,


Please find attached a sample document with highlighted shapes and .jpg files that were rendered usinng rShapeRenderer.Save

Notice, that only Chart MSGraph.Chart.8 was rendered with highlighting.

Thank you

Hi there,

Thanks for sharing the detail. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-12174. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-12174) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.