Calibre will convert pdf to epub, but it is not always pretty.
https://www.mobileread.com/forums/forumdisplay.php?f=166
I have also used an online converter :
http://www.online-convert.com/
Sometimes I still need to edit using Sigil.
It can be a long process.
Good luck.
S