Parsing pdf functionality working