Added pdf parsing code