header("Content-Disposition: attachment; filename=thread-".str_replace(' ', '_', $threadinfo['title']).".pdf");