Added code to createpdf method