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)