update script for pdfs