Can't convert html to pdf

Product: PDFTron

Product Version: PDFTron Java - v9.1.0

Please give a brief summary of your issue:
Can’t convert HTML to pdf in container

Please describe your issue and provide steps to reproduce it:
I have a simple code to convert HTML to pdf and it works when running in my machine (linux), but when I run it in a docker container using openjdk:8 image it won’t work. I have configured the html2pdf modules and set permission for read/write/execute, and there isn’t any exception or error even when using the getLog() method from HTML2PDF it just returns an empty string.

PDFNet.initialize(LICENSE_KEY);
HTML2PDF.setModulePath(MODULE_PATH);
PDFDoc doc = new PDFDoc();
HTML2PDF converter = new HTML2PDF();
htmlConvert.insertFromHtmlString("<html><body><h1>Heading</h1><p>Paragraph.</p></body></html>");
converter.convert(doc);

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Most likely this is a dependency issue. What exact Linux distro are you using in your Docker container?

It’s using Debian GNU/Linux 11

Another thing I’ve noticed is that when it works, it prints in the log:

Permission: html2pdf
Permission: write

but when not it just print:
Permission: html2pdf

Currently we just have Debian9 and Debian10 builds. Do either of these work for you?

https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/support/html2pdf/0.12.6/HTML2PDF-Debian10-Buster.tar.gz

https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/support/html2pdf/0.12.6/HTML2PDF-Debian9-Stretch.tar.gz

If you are having issues you can simply call to see what the missing dependency is.

ldd html2pdf.so

Thank you, that helped me identify the missing packages and now it works