scripts on scripts
added and tested multipage pdf support