View Full Version : EPUB to PDF


paulpeer
12-11-2009, 05:38 PM
I have to convert some books from epub to pdf. Does someone know a good solution? I've tried with calibre, but the result is bad: bad formating, no links to footnotes anymore, no TOC ...

Jellby
12-12-2009, 05:39 AM
You can try the script here (http://www.mobileread.com/forums/showthread.php?t=62939). You'd need some *nix environment, like Linux, MacOS or Cygwin on Windows.

paulpeer
12-14-2009, 06:32 PM
You can try the script here (http://www.mobileread.com/forums/showthread.php?t=62939). You'd need some *nix environment, like Linux, MacOS or Cygwin on Windows.

Thanks for your answer. I have MacOS but your solution seems rather complicated for non-computer-gurus. As far as I understand I first need to install Prince and XMLstarlet?

Jellby
12-15-2009, 05:12 AM
Thanks for your answer. I have MacOS but your solution seems rather complicated for non-computer-gurus. As far as I understand I first need to install Prince and XMLstarlet?

Yes. Prince is the actual program that does the XHTML-to-PDF conversion. The script just extracts the XHTML files from the ePUB and passes the options to Prince. XMLStarlet is used for parsing the XML and getting the right filenames and metadata.

I've never used MacOS, so I can't be of great help, but there is probably an easy way to install both. Prince has a direct MacOS X download, for XMLStarlet there's this post (http://xmlstarlet.darwinports.com/).