An Internal Error Happened Between the SDK and the HTML2PDF Module

When converting HTML to PDF using the Apryse HTML2PDF module you might see the following error message:
Message: An internal error happened between the SDK and the HTML2PDF module. Contact Apryse support for assistance. Conditional expression: exit_code == 0

Here are some steps you can take to investigate the cause.

  • Check the module version

    • Verify you have the latest module by running the HTMl2PDF module without any arguments via the command line.

    • Ex: >./html2pdf_chromium.so
      > Chromium Version: 120.0.6078.0
      > HTM2PDF Module Version: 11.0.0.25049

  • Are all files for the module available?
    The archive for the HTMl2PDF modules include multiple files that are required for HTML conversions. When you extract them they need to be placed in the same location as the module, html2pdf_chromium.so or html2pdf_chromium.dll.

  • Are the required dependencies installed?
    The Windows module requires only the Visual Studio 2019 x64 redistributable be installed, the Linux module may need some additional dependencies installed. If you are using Linux please take a look at the instructions here that will assist you with installing the dependencies.

  • Generate a log
    If you are still seeing the same error reported you tell the HTML2PDF module to generate a log file with SetLogFilePath.

1 Like

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

1 Like

Hi pennykingdon1993, welcome to the Apryse community. Can you create a new forum post under “Technical Support” so we can assist you with this issue, or you can create a new support ticket in our support portal here:
Submit a ticket : Apryse

If you can provide the html you are converting and the log file generated as described in this article that will be helpful as well.

2 Likes