make pdf and script txt