Hello,
We have noticed a difference in the treatment of adjacent tables between MS Word and Aspose.
Please see the attachment tableRendering.docx
which, when converted to PDF (tableRendering.pdf
) has columns with awkward proportions. However, the tables looks fine when opened in MS Word.
I believe the issue may relate to the interpretation of this section of the OOXML spec (ISO/IEC 29500-1 17.4.37)
When two tbl elements having the same style (§17.4.62) are present within the document content, without any intervening p elements, the corresponding tables shall be treated as a single table.
Word seems to render these as two separate, but touching, tables. While Aspose seems to have merged grid definitions and rendered a single table.
The spec seems ambiguous, but the MS Word rendering looks better. Is there a way to make Aspose match this?
Below is the code used to generate the pdf
var document = new Document("./tableRendering.docx");
document.Save("./tableRendering.pdf", SaveFormat.Pdf);
Kind Regards,
Draftable
tableRendering.docx (35.5 KB)
tableRendering.pdf (77.1 KB)