Step- by Step scenario to generate pdf