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

Free Support Forum - aspose.com

Breaking change: DrawingML.Font missing

Hi,

We just upgraded to Aspose.Words 14.11.0.0 and we found a breaking change: DrawingML.Font is missing. Searching about this we found about DrawingML becoming an CompositeNode so instead of overriding VisitDrawingML we now override VisitDrawingMLStart but we still need access to DrawingML.Font member in order to modify font’s style.

public override VisitorAction VisitDrawingMLStart(DrawingML drawingMl)
{
OverrideStyleForFont(drawingMl.Font);
return VisitorAction.Continue;
}

An advice about how to accomplish this and keep the old functionality would be useful.

Best regards,
Aurelian Iordache
IBM Romania

Hi Aurelian,


Thanks for your inquiry. DrawingML node is CompositeNode now. That is why VisitDrawingML method in DocumentVisitor was replaced with VisitDrawingMLStart and VisitDrawingMLEnd. Previously as an Inline node, DrawingML did not provide access to its child nodes, implement Composite operations such as insert and remove children. These and many operations are possible now. May be you should find an Inline child node inside DrawingML and access its Font attributes.

Best regards,