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

Free Support Forum - aspose.com

Table does not fit on page in output PDF using Java

We are facing a table re-sizable issue in our project.
Library - aspose.words
Back end technology - Java

We are using aspose for generating PDF document, In our pdf there are multiple tables. Currently, if a table is too large to fit on a page, it will run off the page. We want to implement automatic scaling for these tables, automatic scaling such that if table is too large then it can automatically adjust the width, font inside the table such that it always fit in to the page.

Also while investigating I found one property Autofit but it is not useful for my scenario because this doesn’t change the font-size.



To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

1 Like