I am generating a PDF using HTML and CSS in .NET 8, with the majority of the content consisting of tables. Occasionally, certain rows display extra spacing, despite all rows having identical CSS. This issue can happen randomly to any row, and after generating the PDF 5-6 times, the extra space might disappear, but it’s inconsistent. I tested rendering the same HTML and CSS as a webpage, and everything displays correctly as expected.
I’ve attached screenshots for reference.
First Image is of PDF

This second image is of web page having the same html and css

I am generating a PDF using HTML and CSS in .NET 8, with the majority of the content consisting of tables. Occasionally, certain rows display extra spacing, despite all rows having identical CSS. This issue can happen randomly to any row, and after generating the PDF 5-6 times, the extra space might disappear, but it’s inconsistent. I tested rendering the same HTML and CSS as a webpage, and everything displays correctly as expected.
I’ve attached screenshots for reference.

First Image is of PDF
This second image is of web page having the same html and css
