update script that creates PDFs