Table render height is different when converting Word docx to PDF

When converting a word document to PDF using the Aspose.Words (v22.8.0) .NET library the rendered table height in the PDF is slightly shorter than the source word document. This causes the text that follows it to wrap at a different line to the next page. For a customer, this is causing page numbers to mismatch, which is a regulatory audit concern.

The C# code used to create the output PDF:

using Aspose.Words;

new License().SetLicense("PdfTest.Aspose.Total.lic");
var doc = new Document(@"test2.docx");
doc.AcceptAllRevisions();
var nodes = doc.GetChildNodes(NodeType.Comment, true);
nodes.Clear();
doc.Save("dump.pdf", SaveFormat.Pdf);

The table is using the “raised/embossed” border style with 3/4th pt width. (See border.png)
border.PNG (5.5 KB)

The PDF rendered table is about 18 pixels shorter, or 1.5 pixels per row. As seen in the table.png image, this causes the last line on the page to be “L”, while the last line in the source docx is “K”:table.PNG (12.3 KB)

The test document that I’m using is test2.docx (13.3 KB)

@markpflug Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24273. We will keep you informed and let you know once it is resolved.

1 Like