Problem with merged table cells when convert from Word to PDF

Hi,

I try to convert DOCX document to PDF.
The document contains table with merged cells, i.e. cells that span several columns.
In resulting PDF they are not merged, i.e. they span one column only.

Both files are attached.

I use Aspose.Words for .NET version 16.2

Please assist.

Hi Eyal,

Thanks for your inquiry. We have tested the scenario at Windows 7 (64 bit) using following code example and have not found the shared issue. Please check the attached output Pdf.

Document doc = new Document(MyDir + "UM.docx");
doc.Save(MyDir + "Out.pdf");

Could you please share your working environment e.g. operating system, .NET Framework and code example here for further testing? We will investigate the issue on our side and provide you more information.

Hi,

Your example works as expected. Our code is bit different and this caused the error.
Here is our code:

var doc = new Document("C:\UM.pdf");
doc.UpdateTableLayout();
doc.Save("C:\um1.pdf");

The highlighted line causes the described issue. Without it everything is OK.

What do you suggest?
Should I “UpdateTableLayout()” or not?
I remember, that this line is needed for some cases.
I still think it is a bug.

The environment:
Windows 10, Windows Server 2008
.NET 4.6

Thanks.

Hi Eyal,

Thanks for sharing the detail. You do not normally need to call Document.UpdateTableLayout method as cell and table widths are maintained automatically. You can call this method before exporting to PDF (or any other fixed-page format), only in rare cases where you confirmed that tables appear incorrectly laid out in the output document. Calling this method might help to correct the output.

However, we have logged this problem in our issue tracking system as WORDSNET-13327. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Aspose,
Do you have any progress?

Hi Eyal,

Thanks for your inquiry. We regret to share with you that your issue (WORDSNET-13327) has been postponed due to missing feature WORDSNET-832 (Make table layout as close to Word as possible) which is related to your issue.

After the fix of WORDSNET-832, our product team will look into your issue. We will be sure to inform you via this forum thread as soon as this feature is available.

We apologize for your inconvenience.

Hi Aspose,
Do you have any progress with the issue?
Thanks.

Hi Eyal,

Thanks for your inquiry. We regret to share with you that your issue is still postponed. I am afraid, there is no estimate available at the moment. We will inform you via this forum thread as soon as there are any further developments.

We apologize for your inconvenience.

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