convert pdf to html, then use dom to parse the html file.