If a narrow table cell contains trailing spaces, Word 2016 ignores them and renders the cell on a single line. Aspose.Words for .Net wraps the cell to 2 lines, thereby rendering a very different lay-out than Word does.
PDF created by Aspose.Words for .Net.pdf (64.5 KB)
PDF created by Microsoft Word.pdf (82.4 KB)
Please find attached a zip file containing a sample document, the PDF created by Word and same PDF created using Aspose.Words for .Net. I tried latest Aspose.Words version (18.3) and the issue still exists in this version. I also tried various document.CompatibilityOptions flagsDocxToPdf conversion sample with table data.zip (135.3 KB)
and none of them seemed to have a positive effect.
As a work-around, we can trim spaces from the last run in each paragraph of each cell in the document (and remove the run if it contains only spaces), but that is quite some code and presumably slow for large documents.