Added method to parse pdf(not finished)