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.

PDFDoc doc = new PDFDoc();
HTML2PDF converter = new HTML2PDF();

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:


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?

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


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