Updated PDF script