Getting Paginator from HTML document with specific style combination does not work

Hi GemBox Team,

the following HTML document cannot be paginated, this code runs without error but never returns after the second line:

var document = DocumentModel.Load(inputPath);
var paginator = document.GetPaginator();
...

The HTML document:

<!doctype html>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
</head>
<body>
<div style="font-size:0px;">
<table>
<tbody>
<tr>
<td><img src="https://amagno.de/wp-content/uploads/2024/07/amagno-modern-style-1-1-e1719995982453.jpg" align="left"></td>
</tr>
<tr>
<td><img src="https://amagno.de/wp-content/uploads/2024/10/amagno.ai-vergleich-von-NDAs-im-vertragsmanagement-830x521.png" align="left"></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

Removing either style=“font-size:0px;” or align=“left” fixes it, but I am not sure how the two styles can influence each other.

I am using GemBox.Bundle version 2025.6.134.

Could you have a look at it?

Best regards,
Sarah

Please try again with this NuGet package:

Install-Package GemBox.Document -Version 2025.6.114

Note that this is a hidden (unlisted) version. To install it, you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario

Hi Mario,

that fixes it - thanks!