Update Fields Loses Table Formatting

I have a document with a few tables and IF fields to show or hide these tables. When the document is converted to PDF, the UpdateFields is first called to update these IF fields. This is causing the formatting of the tables to be corrupted (margins, etc.).

If I update the fields of the input Word document directly in Word, there are not formatting issues, and so the cause is within the Aspose UpdateFields. If I convert to PDF without the UpdateFields call, there are no formatting issues.

Can you please tell me what this issue might be?

@rumfords

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

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired 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.

Here they are.

Aspose20190207.zip (5.0 MB)

@rumfords

Thanks for sharing the detail. We have tested the scenario and have 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-18134. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Any idea on timelines? We are considering more widespread use of your product but have quickly hit two issues/bugs with very simple documents with no apparent work arounds. Thanks.

@rumfords

Thanks for your inquiry. We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

As a workaround of this issue, please set the paragraph’s alignment inside table’s cell using ParagraphFormat.Alignment property. Hope this helps you.

You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies

The issues you have found earlier (filed as WORDSNET-18134) have been fixed in this Aspose.Words for .NET 19.8 update and this Aspose.Words for Java 19.8 update.