VSD to PDF - Text is getting wrapped as compared to Office Export to PDF

SampleVsd.zip (187.8 KB)

Hi,

We are having an issue with the attached VSD. When exporting it to PDF using Aspose, a lot of the text is wrapped compared to Office Export and VSD fidelity (see attached screenshot).

Thank you,
Mark

image.png (38.9 KB)

@markmanley.adlib

It appears you are experiencing issues with text wrapping when converting a VSD file to PDF using Aspose, particularly in comparison to the output from Microsoft Office. This discrepancy may be due to the configuration settings in your Aspose setup.

Cause: The issue likely stems from the text wrapping settings in Aspose.PDF, which can differ from those in Microsoft Office.

Solution: I recommend checking the WordWrap property in your Aspose.PDF configuration. Setting the WordWrap property to true will allow text to break into multiple lines to fit within the specified width. Additionally, consider adjusting the width settings to see if that enhances the text fidelity in your PDF output.

Next Steps: Experiment with the WordWrap property and width settings in your code. If you continue to face challenges, please share specific code snippets or settings you are using for more tailored advice.

For further assistance, reviewing similar posts in the Aspose forums may provide additional insights or solutions from users who have encountered similar issues.

Please let me know if you need any more help!

That’s not applicable here, we just want it to come out how it looks in VSD.

Thanks,
Mark

@markmanley.adlib
Thanks for the template file and screenshots.
After an initial testing, I am able to reproduce the issue as you mentioned by using your template file. I found the text is getting wrapped when saving to pdf.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53810

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as DIAGRAMNET-53810) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou

@markmanley.adlib
The width and other shape data stored in the original file are incorrect. We need to recalculate and refresh this data.
Please try this code to refresh shape’s data before save:

    foreach (Shape shape in diagram.Pages[0].Shapes)
    {
        CalculateOptions o = new CalculateOptions();
        o.Type = Aspose.Diagram.CalculateItemType.XForm;
        shape.RefreshData(o);
    }

That worked. Is there not an option to always refresh all the things that need it?

Cheers,
Mark

@markmanley.adlib
It is great that you were able to resolve this issue on your end.
By default, we refresh all data of shape, but this can be time-consuming.
Thanks.

Oh that’s not good. If this can be time consuming, how do we detect when we should do it?

@markmanley.adlib
This issue is caused by incorrect data stored by Visio, which rarely occurs. We can refresh the data when the shape’s width/height contain formulas. We will also gradually improve the performance of data refresh operations.
We apologize for any inconvenience caused.