Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know the ways in which epub files can be converted to pdf in ubuntu. Any method, GUI or command line conversion is fine as far as my epub gets converted to pdf. Thanks.

share|improve this question
up vote 42 down vote accepted

You definitely want Calibre. You can use it to convert virtually any file type to any other file type, as long as the source file doesn't have DRM (like Amazon, Adobe, etc.). If it does have DRM, check out Apprentice Alf's blog for help stripping it out with Calibre plugins. Don't use the DRM stripper to pirate books or otherwise violate your agreement with the vendor. Use it so you can enjoy your books on any device in any format.

Calibre is also an awesome e-book management program that can do virtually everything. It can manage Kindles, Android phones/tablets, etc. It can even email your books with one click to your Kindle's email address if you want. You won't be disappointed :-)

From a terminal:

sudo apt-get install calibre

Or search for it in Ubuntu Software Center

To actually convert the EPUB file you can use the following command:

ebook-convert file.epub file.pdf (For details, check this other answer)

Or you can check the details for the conversion dialog using the Calibre GUI.

share|improve this answer
I agree that Calibre is the way to go, but I would not install the version in the repos because they're outdated. There's a new version almost every Friday so I would install using the command recommended on the Calibre site sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('').read()); main()" – To Do Jun 1 '13 at 10:31
@ToDo thanks for the tip! – Freedom_Ben Jun 1 '13 at 14:00
IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) – noobninja Sep 15 '15 at 16:15
sudo -v && wget -nv -O-‌​ | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(; main()" – noobninja Sep 15 '15 at 16:23
works perfectly on ubuntu 14.04LTS, thanks! – hdoghmen Sep 23 '15 at 20:39
  1. Install Calibre from the Ubuntu Software Center.
  2. Open Calibre and click on the Add books icon in the Calibre menu. A file selection window will open up.
  3. Browse to the epub file(s) that you want to add, and select one or more epub files to add to Calibre.
  4. Select one or more epub files from the Calibre library in the center pane. Or type formats:"=EPUB" in the search box to search for only EPUB format files and select one or more epub files from the filtered library list in the center pane. Click on the Convert books icon in the Calibre menu.
  5. A new Convert window will open up. In the Convert Window for the Input format select EPUB. For the Output format select PDF. Click the OK button to start converting the file(s).
  6. To find your PDF files, click on a file that you converted to PDF. In the pane on the right-hand side of Calibre you will see an entry called Path: Click to open. Click on the link for "Click to open" to open a new file browser window at the directory of the PDF file.
share|improve this answer

epub to pdf converter

Before trying calibre, I actually converted my file using the above program, a command line epub to pdf converter that is actually good with some handy options.


1) unzip the file into a convenient location, and change to the unzipped folder in terminal

2) make the .sh file executable

 chmod +x ./ 

3) run the file

 ./ <path-to-epub-file>

The default output directory is home folder, but a lot of customization is available through a properties file where it can be changed.

Though the program hasn't been updated for a while, it works really good and I thought it might be an option for people to try out for converting their epub to pdf.

share|improve this answer
Good find! That's handy for a quick and dirty convert – Freedom_Ben May 27 '13 at 15:20

Calibre could be the best option to convert the standard ePub files without DRM protection to PDF or other formats. It's very easy-to-use and only takes a few steps to complete the conversion. But if you mean to convert the ePub files that are downloaded from Apple's iBooks store with DRM, you'll need to use a special DRM removal tool to crack the DRM from the ePub files firstly. Anyway, to find out the complete guide to convert both DRM and DRM-free ePub to PDF, you can follow this tutorial:

share|improve this answer
thanks. for my needs calibre was more than enough – palerdot Jun 2 at 5:55
sudo apt install pandoc
pandoc -f epub -t pdf infile.epub -o outfile.pdf
share|improve this answer

I really liked the answer that I saw on a similar post here:

Especially the following command helped me get a better conversion:

ebook-convert file.pdf file.epub --enable-heuristics
share|improve this answer
Ehm, you've got it the wrong way around. This question is about converting from EPub to PDF. – David Foerster Mar 19 '15 at 1:02

Have you looked at, you can easily convert .epub to.pdf and vice versa using their free online conversion tool. That way you don't have to install anything.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.