http://openacs.viscousmedia.com:8080/files/view/bug-pdf.zip
and call the proc in bug-pdf.tcl. Requires htmldoc located at /usr/bin/htmldoc
Cheers.