Pdf genearation work