Convert PDF to HTML, save layout
What methods are there to convert PDF to HTML? It can be anything - an online service, software, library. (Preferred. In the latter case, php or python is preferred.) It should preserve the original layout (including page numbers, footnotes, etc.), Preserve images (merging them into one background image on the page is acceptable), and preserve links. It should preferably output valid XHTML and clean up PDFs like ligatures, but if some post-processing is required I can handle it. Something with clean, relatively semantic HTML output would be great.
The closest I found was zamzar.org , but it choked on the links. (Also the HTML output is an ugly bunch of absolutely positioned divs and needs post-processing due to encoding issues.)
a source to share
Process PDF files with PDFtoHTMLEx, which creates excellent presentation HTML markup (positioned divs).
To get semantic HTML you can send document processing using transcript.py (I'm the author). This creates semantic HTML including headings, paragraphs, lists, and data tables. Be aware that tags are retrieved (not retrieved) because python code looks for visual design conventions and decides based on layout. Structural tags and semantic information are usually not present in a PDF file.
a source to share
I used ABBYY PDF Transformer a few years ago and it worked well for simple documents
a source to share