12-28-2010, 05:03 PM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2010
Device: iPhone, Sony PSP, Android, Kindle
|
epub to PDF?
Calibre is a great program! I love it. I have used it to convert books into Mobi format to read on my iPhone's Kindle app. However, now I want to convert some epub books to pdf format to read on my Sony PSP using Bookr. If I download a pdf file from the internet, it works fine. If I convert epub to pdf using calibre I can't read it on my computer or on my PSP. It shows as an empty file (0kb).
I am using Ubuntu 10.04, not Windows. Is there a dependency I might need to make this conversion work? Or is there something else I am missing? I see tons of stuff about converting pdf to epub, I need to go the other way around so none of that is helping me. Last edited by organized_chaos; 12-28-2010 at 05:08 PM. |
12-28-2010, 07:05 PM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Are there any errors?
Try running: Code:
$ ebook-convert in.epub out.pdf |
Advert | |
|
12-28-2010, 10:56 PM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2010
Device: iPhone, Sony PSP, Android, Kindle
|
Thanks for the tip. Here is the output of that command. I have no idea how to fix these errors.
Code:
kenny@Kenny-Laptop:~/Calibre Library/J. R. R. Tolkien/The Two Towers (5)$ ebook-convert LOTR2.epub LOTR2.pdf 1% Converting input to HTML... InputFormatPlugin: EPUB Input running on /home/kenny/Calibre Library/J. R. R. Tolkien/The Two Towers (5)/LOTR2.epub Parsing all content... Property: Invalid value for "CSS Fonts Module Level 3 @font-face properties/CSS Level 2.1" property: itlaic [50:2: font-style] Guide reference 'OEBPS/cover-mono.xml' not found 34% Running transforms on ebook... Merging user specified metadata... Detecting structure... Detected chapter: Chapter 1 Detected chapter: Chapter 2 Detected chapter: Chapter 3 Detected chapter: Chapter 4 Detected chapter: Chapter 5 Detected chapter: Chapter 6 Detected chapter: Chapter 7 Detected chapter: Chapter 8 Detected chapter: Chapter 9 Detected chapter: Chapter 10 Detected chapter: Chapter 11 Detected chapter: Chapter 1 Detected chapter: Chapter 2 Detected chapter: Chapter 3 Detected chapter: Chapter 4 Detected chapter: Chapter 5 Detected chapter: Chapter 6 Detected chapter: Chapter 7 Detected chapter: Chapter 8 Detected chapter: Chapter 9 Detected chapter: Chapter 10 Flattening CSS and remapping font sizes... Source base font size is 9.00000pt Cleaning up manifest... Trimming unused files from manifest... Property: Invalid value for "CSS Fonts Module Level 3 @font-face properties/CSS Level 2.1" property: itlaic [206:1: font-style] Creating PDF Output... 67% Creating PDF Output Traceback (most recent call last): File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 130, in _render_html self._render_book() File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 105, in _render_book self._write() File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 141, in _write outPDF = PdfFileWriter(title=self.metadata.title, author=self.metadata.author) TypeError: __init__() got an unexpected keyword argument 'title' PDF output written to /home/kenny/Calibre Library/J. R. R. Tolkien/The Two Towers (5)/LOTR2.pdf Output saved to /home/kenny/Calibre Library/J. R. R. Tolkien/The Two Towers (5)/LOTR2.pdf Code:
kenny@Kenny-Laptop:~/Calibre Library/J. R. R. Tolkien/The Two Towers (5)$ stat -c %s LOTR2.pdf 0 |
12-29-2010, 07:38 AM | #4 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
How did you install calibre? Did you install it though Ubuntu's software repository? I'm thinking you did and the Ubuntu packagers have a bad habit of breaking calibre (as well as other apps) by never testing or using any help they've been offered from upstream. Almost every Ubuntu version has shipped with calibre broken...
pyPDF is used and the bundled version that has some changes to upstream is not being used in your conversion. Install using the binary installer from http://calibre-ebook.com and you will be fine. |
12-29-2010, 06:07 PM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2010
Device: iPhone, Sony PSP, Android, Kindle
|
I installed it from Ubunut's Synaptic Package Manager. Using the binary installer from your link worked. I successfully converted one book already so I should be able to convert the rest.
Thank you for your assistance. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to epub | constroy | 5 | 11-12-2012 09:16 AM | |
.PDF to .EPUB. | SUNJIB | Introduce Yourself | 5 | 11-22-2010 11:32 AM |
PDF to EPUB help | Rotha | Calibre | 5 | 09-24-2010 01:23 PM |