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

Free Support Forum - aspose.com

Convert docx to PDF Error

Hello. I have error when convert word to PDF. Word file contains Visio object. I have try different versions aspose-word, but result is same. Could you help me?Documents.zip (136.9 KB)


Thank you for inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17671. You will be notified via this forum thread once this issue is resolved.

For the time being, you can use GetShapeRenderer() method to convert Visio object to Image before saving to PDF. Later on, you will be notified with permanent solution.

Shape shape = (Shape)doc.GetChildNodes(NodeType.Shape, true)[0];
if (shape.HasImage)
ShapeRenderer renderer = shape.GetShapeRenderer();
using (MemoryStream ms = new MemoryStream())
renderer.Save(ms, new ImageSaveOptions(SaveFormat.Svg));
DocumentBuilder builder = new DocumentBuilder(doc);
We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17671) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.