Silent PDF Corruption in Aspose.HTML for Java After ~114 Iterations

We’re observing silent PDF corruption when converting HTML to PDF using Aspose.HTML for Java. The issue consistently appears after roughly the 114th conversion within the same JVM session. Once the corruption occurs, all subsequent PDFs generated by that JVM remain corrupted until restart.

The corruption is characterized by:

  • Missing text layers (borders and layout render correctly, but all text disappears).
  • Large sections of null terminators (\x00) appended after the %%EOF marker, nearly doubling the file size.

A minimal GitHub repository is available that reproduces the issue and includes sample HTML, PDF outputs, and the runner used for testing.

https://github.com/matthewisayan-cf/AsposeHtmlPdfCorruption

@matthewisayancf

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): HTMLJAVA-2303

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.

1 Like