One method is to convert it to HTML and then parse it to extract plain text . I was wondering if there is direct way to do it