outputing directly to html and pdf works for collapsed threads