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