Huge space between Html paragraphs

I’m using a Aspose.Pdf.Generator.Text with the attribute IsHtmlTagSupported = true; i have many paragraph tags and the problem is that there is a lot of space between paragraphs. When i test the code in a browser it works fine. Can i reduce the line spacing between paragraphs?

Hi Zied,


Thanks for contacting support.

Aspose.Pdf.Generator is a legacy approach for converting HTML file to PDF format. However we have a better and optimized approach of converting HTML contents to PDF format using new Document Object Model (DOM) of Aspose.Pdf namespace. Please try following instructions specified over Convert HTML to PDF Format and in case the problem still persists, please share the resource HTML so that we can test the scenario at our end.

We are sorry for this inconvenience.