Ok, this is just plain awesome:
https://github.com/coolwanglu/pdf2htmlEX
See the example here:
https://coolwanglu.github.io/pdf2htmlEX/demo/cheat.html
Remember: This example is HTML!
github.com
GitHub - coolwanglu/pdf2htmlEX: Convert PDF to HTML without losing text or format. Convert PDF to HTML without losing text or format.