I know that the full version of Acrobat, not the Reader, has an export to HTML command.........

But programmatically...Hmmm....If you go to their website, they have a section for developers and it has whitepapers and examples.