adding script to scan documents to pdf