This is a rough tool helping me converting all sorts of PDFs to EPUBs.
Paths with spaces may not work at the moment :-(
Available for macOS, other systems may need their corresponding docpub distribution from PDFTron.
Firstly, find a proper location for all the stuff, and structure the directories like this:
somewhere
├── PDF Archives
└── Pending
Then add the root directory to environmental variable $readerPath, like:
export readerPath=somewhere
Finally, put your PDFs under "Pending" folder, and run:
./epub.sh
This program needs python3 and Docker to run.
Thanks for pdf2epubEX for most of the jobs, and PDFTron for the handy docpub utility generating index file.