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.
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:
Or search for it in Ubuntu Software Center
To actually convert the EPUB file you can use the following command:
Or you can check the details for the conversion dialog using the Calibre GUI.
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
3) run the 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.
I really liked the answer that I saw on a similar post here: http://askubuntu.com/a/170119
Especially the following command helped me get a better conversion: