Tables are not joining into a single table while converting to PDF

We have multiple tables in the Word document that are arranged sequentially without any spacing. Although they appear to be separate in the user interface, they are all contained within a content control.

When we remove the content control programmatically, the tables merge into a single table when we save the document onto disk and open it using a Word editor.

The issue arises when we process the document in-memory and save it directly as a PDF using the method Document.Save(Stream stream, PdfSaveOptions). In this case, the tables do not combine into a single table in the PDF output. However, if we reload the same document into a new instance of Aspose.Words.Document after processing, the tables do merge into a single table.

Could you please share your thoughts on this behavior and suggest a solution to achieve the same behavior for in-memory processes without reloading the document into a new instance?

Thanks

@HirenT The problem might occur because document layout is cached. Please try calling Document.UpdatePageLayout before saving the document to PDF. If this does not help, please attach your input document along with code that will allow us to reproduce the problem. We will check the issue and provide you more information.