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

Free Support Forum - aspose.com

More spaces between lines in PDF

We are using Aspose.words to generate PDF’s from word documents. But we see that there is lot of space between the lines and the total page count in PDF increases.
How do we reduce the spacing between lines so that the total page count is not increased.


Thanks for your inquiry. Please ZIP and attach the following resources here for testing.

  • Input Word document.
  • Aspose.Words generated PDF file showing undesired behavior.
  • MS Word generated PDF file showing the desired output.

We will then investigate the issue on our end and provide you more information.

Please find the attached files. While the Aspose generated word also has few more spaces, PDF is really extending page for 2 word pages which we cannot accept. test results.zip (74.8 KB)

Thank you for sharing documents. We have tested your provided document using the latest version of Aspose.Words 19.1 and found no issue. Documents are saving properly without any extra spaces. Please make sure you are using the latest version of Aspose.Words for .NET 19.1 .

Please check documents for your reference.Original documents_19.1.zip (154.9 KB)


We are using the latest 19.4 jars and still the spaces between the lines are too much. 2 page word document converts to 3 page PDF document. Can you please review and see if there is any option to reduce these spaces?
spaces.zip (70.7 KB)


Please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you are converting documents to PDF. Please refer to the following articles:

How Aspose.Words Uses True Type Fonts
How to Receive Notification of Missing Fonts and Font Substitution during Rendering

We have tested the scenario using the latest version of Aspose.Words for Java and have not found the shared issue. We have attached the output PDF with this post for your kind reference.
19.4.java.pdf (148.2 KB)