Work only need to generate HTML AND PDF