updated PDF script