Avoid Text Shifting in Table Cell during DOCX Word Document to HTML File Conversion using C# | Text Direction

Hi,

This Topic is related to a previous enquriy. There seems to be another problem with rotated text. DOCX to HTML conversion issue with text direction in table's cell using C#

When converting from a Docx to HTML, with a table and the text inside is rotated 90° or 270°. It moves the text to a different location inside the table cell.

We use Aspose word 20.9

Code:
var convertedDocument = new Aspose.Words.Document(@“C:\temp\Debug\RotatedTextSource.docx”);
convertedDocument.Save(@“C:\temp\Debug\RotatedText.htm”);

Steps to reproduce:

  • Insert a table into word
  • Add text to a cell
  • Rotate the text by using Text Direction in the header under Table Tools → Layout
  • Rotate the text 90° or 270°/( the Text direction is pointing up or down)
  • Convert the document to HTML

You should see in the output HTML, the text is in a different location in the table cell to the source Docx.

I’ve attached a screenshot and test files. Please take a look.

Thanks

ExampleDocument.zip (105.8 KB)

@ServerSide527,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-21100. We will keep you updated on the status of correction and apologize for your inconvenience.

When can we expect a fix for this?

@ServerSide527,

WORDSNET-21100 is currently pending for analysis and there is no ETA available at the moment. We will inform you via this forum thread as soon as this issue will get resolved in future or any estimates may be available. We apologize for any inconvenience.

The issues you have found earlier have been fixed in this Aspose.Words for .NET 20.12 update and this Aspose.Words for Java 20.12 update.