Changed output file format to pdf