Free Support Forum - aspose.com

Text Formatting after VSDX conversion to PNG

We have a text box in a diagram, that is not being formatting correctly. The text in the text box is two lines of text. The word on the first line is being shifted very high up into the diagram, and the second line is being positioned into a lower part of the diagram with a lot of space between the two lines of text. The text is between the border of the diagram, and a couple shapes. It seems like Aspose is trying to find a large enough part of the diagram to put the lines in, instead of wrapping the text like seen in visio. Is this fixed in a later version of aspose, is there anything we can do to configure Aspose to properly handle this use case, or is this a recognized bug with aspose? I am using Aspose diagram 17.4.

One additional note. Manually editing the text box in the file with a return line to make the line shorter fixes the formatting, but this is more of a work around that we won’t be able to apply to all VSDX diagrams that have issues with word wrapping.

@adam.elkins,

Kindly send all details of the scenario, including source Visio drawing and code. We will investigate your scenario in our environment, and then share our findings with you.

The Visual Studio project can be found here…
https://drive.google.com/file/d/1MgU11tJo8PuxCd6c2hfJmCg2rbRCg3je/view?usp=sharing
and the offending diagram can be found here…
https://drive.google.com/file/d/1R4vA7KvWjugsluGMDJliC0SrR5lKXpoT/view?usp=sharing
The text that is not being formatted correctly is on the left side of the image and the problematic text is “(Congenstiondomain)”

Also issue in the resulting images is pointed out in this screenshot.
https://drive.google.com/file/d/1Hy11TvAqrRUxQ2xtWJf2ZwtSChGSrbUH/view?usp=sharing

@adam.elkins,

The visibility of the source Visio drawing is different than the snapshot (TextBoxIssues.png). However, we managed to replicate the problem of a line break in the shape’s text. It has been logged under the ticket ID DIAGRAMNET-51439 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. This is the output PNG: LostLines_Error.png (22.0 KB)

@adam.elkins,

The linked ticket ID DIAGRAMNET-51439 has been fixed. Please download and try the latest hotfix version 18.3.1 of Aspose.Diagram for .NET API.

The issues you have found earlier (filed as DIAGRAMNET-51439) have been fixed in Aspose.Diagram for .NET 18.4. This message was posted using BugNotificationTool from Downloads module by imran.rafique