PD4ML HTML conversion demo: embed TTFs and write PDF to a file (with debug=on)

file: pd4ml_1.pdf

Command line:
java -Xmx512m -Djava.awt.headless=true -cp ../pd4ml_demo.jar Pd4Cmd "https://arabdemog.com/jj/test/pd4ml_php_wrapper2/probe/xdemocjk.php" 800 A4 -debug -ttf ../fonts/ -out pd4ml_1.pdf 2>&1

Debug output:
sh: 1: java: not found

Open PDF

Delete temporal PDF files

Note: the script uses a font from /var/www/vhosts/arabdemog.com/httpdocs/jj/test/pd4ml_php_wrapper2/fonts
To add more fonts, copy them to the fonts/ directory and delete
pd4fonts.properties (font name-file mappign) to let PD4ML generate a new one.

More info about TTF embedding