Extra cell width is added to AUTO_FIT_TO_CONTENTS table cells with vertical text orientation in PDF export.
Code snippet:
Document document = new Document();
DocumentBuilder builder = new DocumentBuilder(document);
builder.insertCell();
builder.write("blabla");
builder.getCellFormat().setOrientation(TextOrientation.DOWNWARD);
builder.getRowFormat().setHeight(30);
builder.endRow();
builder.endTable();
Table table = (Table) document.getChild(com.aspose.words.NodeType.TABLE, 0, true);
table.autoFit(AutoFitBehavior.AUTO_FIT_TO_CONTENTS);
PDF export:
DOCX export:
Aspose.WORDS version: 24.9