PDF to EPUB

Post Reply
User avatar
Terkelsen
Advanced member
Posts: 300
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

PDF to EPUB

Post 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.
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: PDF to EPUB

Post 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?
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: PDF to EPUB

Post 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.
User avatar
Terkelsen
Advanced member
Posts: 300
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: PDF to EPUB

Post 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.
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: PDF to EPUB

Post 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.
Post Reply