You can't. You need to OCR the document. You end up with text and then it is up to you what you do with it next - create an epub or a pdf.
Like all OCR, it is not perfect, so a proof read and formatting will be required.
The method I use is detailed here...
https://www.mobileread.com/forums/sh...3&postcount=23