Added exception handling in pdf parsing.