failed to convert html to pdf: An Internal Error Happened Between the SDK and the HTML2PDF Module

Product: convert html to pdf

Product Version: docker always fetches the latest

Please give a brief summary of your issue: failed to convert html to pdf

Please describe your issue and provide steps to reproduce it:
Tried to convert html to pdf. It failed in Production env. It only happens to a couple of the one we tried to export to pdf. It works fine for the rest. This error is not useful at all. Message: An internal error happened between the SDK and the HTML2PDF module. Contact Apryse support for assistance. Conditional expression: exit_code == 0.

So I enabled the log generation and I got the html file for that that failed. I tried to convert the failed html to pdf locally and it did just fine. For the log file, it is not useful because it generated pretty much the exact same logs for both failure and successful one except the last line in the failed log that said no valid output found.

The log from successful conversion to pdf

html2pdf-test.log (3.0 KB)

The log from failed conversion to pdf

html2pdf_20260601_203238_691.txt (2.8 KB)

Please provide a link to a minimal sample where the issue is reproducible: I can’t do that here. Is there an email that we can send you the html that it tried to convert to pdf since there are customer data in the file.

Hi Penny,

Thank you for reaching out.

Yes, of course, please provide a minimal sample project at mickael.vanstraelen@apryse.com.

Being able to reproduce the same issue on our side will greatly help us figure it out.

Best Regards,
Mickaël.