Added pdf generation feature