Issue when converting a vsdx to jpg with long text without any space

Hello,

We have an issue when converting a vsdx to jpg if the shape text is very long and with no space. The text in the generated picture get moved far from the current shape. It does not happen if there are space in the text.

Here is the code to reproduce the issue:

Diagram vsd2 = new Diagram("c:\\vsdTest\\asposeissue.vsdx");
        Aspose.Diagram.Saving.ImageSaveOptions options = new Aspose.Diagram.Saving.ImageSaveOptions(Aspose.Diagram.SaveFileFormat.JPEG);
        options.PageIndex = 0;

        vsd2.Save("c:\\vsdTest\\asposeissue.jpg", options);
        return;

Attach is the vsdx file asposeissue.zip (1.6 MB)
and the output generatedasposeissue.jpg (24.4 KB)
.

Thank you !

@umaknow,
We have tested your source Visio drawing and code with the latest version 17.8.1 of Aspose.Diagram for .NET API and the output JPG is fine. This is the output JPG: Output17.8.1.jpg (24.7 KB). Please download and try the latest API version: Download Aspose.Digram for .NET 17.8.1

Hello,

Thank you for your answer. I have just tested the package and it fixes the issue with the long text with no space but it looks like it introduces a new issue.

In our stencil, we specify formulas in the TextTransform section and it used to work when generating the visio. Now it looks like the formula is ignored (they are not in blue and if I open the file and hit enter it works… before it used to worked on document opening and on picture generation too).

notworkingAspose.PNG (52.2 KB)

asposeworkingafterenterhit.PNG (57.3 KB)

Thank you !
Pascal

@umaknow,
Kindly create a small use case with the shape type as highlighted in the screenshot and send us your stencil file along with the code. We will investigate and share our findings with you.