Using rangy, pdf2htmlEX.