add for pdf genration
solve the pdf genration problem