Sorry for the delay, I hadn’t gone to sleep, I was on holiday.
Thanks for your continuing help.

The following command produced a nice pdf:

java -Xmx512m -Djava.awt.headless=true -cp ./pd4ml.jar Pd4Cmd ‘http://pd4ml.com’ 1200 LETTER -bookmarks HEADINGS -pdfforms -debug -out /tmp/pd4ml.pdf

The only question is: why doesn’t it produce anything from Tomcat6 (which is also headless)? We get nothing from either API calls or tags