I wrote a python script which converts the output of pdf2xml to html and attempts to maintain formatting of complex pdf's. I then use calibre to generate the ebook format (mobi in my case). It seems to work pretty well. You can read more about it on my blog at
http://talkings.org/2009/05/03/complex-pdf-html/.