Caveat
You're not going to get a beautiful EPUB out the other end - if that's what you're looking for, expect to do some manual clean-up work yourself.
Basic order of operations:
- Convert your PDF to an OCR-friendly format
- OCR that shit into plaintext
- Convert that plaintext into your format of choice (in this case, an EPUB)