added script to create pdf