PDF pushes content to next page even HTML has less content

Hello
I am attaching examples of two HTML and output PDF. Aspose is pushing content to next page even HTML has less content in it. Can you please check why this is happening?

Let me know if you need any additional info.

Thank you

@ANDREA.FARRIS

Can you please provide more details about the HTML content and the specific settings or options you are using when converting to PDF?

Yes,
static void Main(string[] args)
{
SetAsposeLicense();
Console.WriteLine(“Starting original html to pdf generation \n”);
GeneratePdfFromHtmlFile(“Resources/test.html”);

  Console.WriteLine("Starting html to pdf generation with less content that breaks into a new page \n");
  GeneratePdfFromHtmlFile("Resources/test_less_content.html");

  Console.WriteLine("You will notice that the second html has less text but is pushing content to a new page. Why is that?");

  Console.ReadLine();

}

@ANDREA.FARRIS

We tested with 25.3 version and noticed that content is being shifted for both of the HTML files with the latest version.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-59533

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.