Page 1 of 1

PDF to EPUB

Posted: Wed Feb 14, 2024 10:09 am
by Terkelsen
Any ideas on how to convert PDF to EPUB with fixed layout in Switch?

It seems that most of the online tools available will all generate a reflowable EPUB. I need it to be fixed layout.

Re: PDF to EPUB

Posted: Wed Feb 14, 2024 1:07 pm
by JimmyHartington
In my search I found this, which claims to create fixed layout epubs.
But on macOS you need to run it through Docker.
https://github.com/dodeeric/pdf2epubEX? ... me-ov-file

I have some time available if you would like me to test with a file?

Re: PDF to EPUB

Posted: Wed Feb 14, 2024 1:47 pm
by JimmyHartington
I have now tried with this file: https://d.pr/f/UPeWId

And it has made this fixed lay-out epub: https://d.pr/f/3Foyul

I needed to install docker https://docs.docker.com/desktop/install/mac-install/

And then ran this command in the terminal

Code: Select all

docker run -ti --rm -v `pwd`:/temp dodeeric/pdf2epubex pdf2epubEX dictionary.pdf
It ask for some info when running. It does not seem to be possible to set these parameters in the command line.

Re: PDF to EPUB

Posted: Wed Feb 14, 2024 2:02 pm
by Terkelsen
I actually tried that already, but I'm getting this error:
"WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"
...apparently because I'm running on a Mac with the M1 processor (ARM). Not an expert in Docker, so I'm not sure where to change something.

Re: PDF to EPUB

Posted: Wed Feb 14, 2024 2:16 pm
by JimmyHartington
I run it on a M2 MacBook Pro and it just worked.
But it only worked for me if the pdf-filename does not contain any spaces.