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);
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.