We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Last Empty Paragraph of Table Cell is not Rendered in output PDF using .NET

I found a problem while converting a docx file to PDF (example attached). In case table is copy\paste from Excel and some cells contains paragraph in the end, then row height is cropped to the text height during export (paragraph marks are lost).wrong_row_height_while_save_to_pdf.docx (12.1 KB)


We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22472. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-22472) as ‘Not a Bug’.

Please note that Aspose.Words mimics the behavior of MS Word. If you convert your document to PDF using MS Word 2019, you will get the same output. ms word.pdf (26.7 KB)

As a workaround, you may remove the empty paragraph in the end of the cell in first column of the table (or add any content, such as space, to the last cell paragraph) to get the desired output.