Structured Document Tag RemoveSelfOnly results in increased 1st column width when published to PDF

Hi team,
We noticed the issue when remove rich text SDTs in the Word document and then published it to PDF.
This happened with the latest version of Aspose.Words 24.9.

After SDTs are removed and document is published to PDF, the 1st column
in the table is pushed to the right, and the widths of the remaining
columns are decreased.
Note that this does not happen when document is saved as DOCX.
Attached is zip archive illustrating the problem, it contains:

  • 1_Balance_Sheet.docx - input word document with two SDTs containing rich text;
  • 24_9_output_removedEmbedContents.pdf - output after removing SDTs self only and save to PDF
  • 24_9_output_removedEmbedContent.docx - output after removing SDTs self only and save as DOCX
  • 24_9_output_notRemovedEmbedContents.pdf - output when embedded content SDTs are not removed
  • TestWordToPDF.java - sample test program illustrating the issue

This issue occurs under both Linux 7 and Windows 11 OS.
Please let us know, if you need additional information.
Thank you.
SDT_removeEmbedContent_selfOnly.zip (366.9 KB)

@oraspose
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27421

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

As a temporary workaround, you can save the document to DOCX before converting it to PDF. In this case the document is rendered properly.