Set Table Width and Page Margins in PDF using Aspose.PDF for .NET

    Table table = new Table
        Left = (float)LEFT_MARGIN,
        ColumnWidths = "100 800"

image.png (19.8 KB)

Is this the minimum width? Now I can only set the maximum width of the table like this. Is there any way to reduce the spacing?

image.png (19.6 KB)
Can I make it like this?


You may try to reduce the page margins in order to expand the table as per your need. Furthermore, you can also increase the page width to achieve same results. In case you face some issue, please share a complete sample code snippet with us so that we can test the scenario in our environment and address it accordingly.

thank! I user Page.Margin to resolve the question!

1 Like