We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect text wrapping when NoWrap=false and PreferredWidth set on cell using .NET

I noticed difference in output between pdf and docx versions.

In docx cell is extended for the text. In pdf the cell has the same width and the text is in one column.
NoWrap property is set to false, but the difference in output appears.
Could you take a look at?
I would like to get same output in pdf as it is in docx.

        var document = new Document();
        var builder = new DocumentBuilder(document);
        var cell1 = builder.InsertCell();
        cell1.CellFormat.WrapText = false;
        cell1.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1);
        builder.Write("test test test test test test test test test test");
        var cell2 = builder.InsertCell();
        cell2.CellFormat.PreferredWidth = PreferredWidth.FromPercent(99);

Many thanks,


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21289. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.