added the loop to parse multiple pdf files;