I am using InsertHTML to add a table into a Word document. In the first cell is a list of names. I want all of these names to appear on one line, without wrapping or breaking. It works in Word - but when I save it as PDF the first cell always seems to wrap.
I’ve tried using the following on or in the TD without success:
white-space: nowrap;
word-break: keep-all;
nowrap=‘nowrap’
And I’ve tried this on the table, too:
table-layout: auto;
table-layout: fixed;
To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
Your simplified input Word document
The HTML file or String you are inserting in Word document
Aspose.Words 20.2 generated PDF file showing the undesired behavior
Aspose.Words 20.2 generated DOCX file showing the correct output
Please also create a standalone simple Console Application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.