Table's column width is not same after creating table using C#

This is the code I use to generate the footer:

builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
builder.StartTable();

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
if (section.footer.left != null && section.footer.left.Count > 0)
addBlocks(builder, section.footer.left, blockFactory, report_data);

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 * 1 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
if (section.footer.center != null && section.footer.center.Count > 0)
addBlocks(builder, section.footer.center, blockFactory, report_data);

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(100 * 1 / 3);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
if (section.footer.right != null && section.footer.right.Count > 0)
addBlocks(builder, section.footer.right, blockFactory, report_data);

builder.EndRow();
var table = builder.EndTable();
table.ClearBorders();

It’s supposed to be a 3-column table with same-width columns. What I get is this:
one footer looks good:
image.png (2.9 KB)
and another is distorted:
image.png (6.4 KB)

@emfbd33

We suggest you please call Document.UpdatePageLayout method before saving the document. Hope this helps you.

Don’t see any difference

doc.UpdateTableLayout(); didn’t help too

@emfbd33

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

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.

PS: To attach these resources, please zip and upload them.