script to check RDs if errors in PDFs occur