There is no simple answer for this general question, because a pure print format and a flowing format are different by nature.
Even simple cases would need heuristics, but general solutions sophisticated artificial intelligence.
This post lists some possibilities (especially pdftohtml -xml) and other corresponding discussions:
Parsing PDFs by text position?
Cheers Rolf
In reply to Re: Need Help for Convert PDF to HTML
by LanX
in thread Need Help for Convert PDF to HTML
by satzbu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |