Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2010, 05:28 AM   #1
DVC
Junior Member
DVC began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2010
Device: iPhone 3Gs
Angry No photos to EPUB from RTF files

After being told that PDF can't be used to get an EPUB -- after I posted that when I tried this conversion and ut produced terrible output -- I tried RTF.

Great conversion -- except all photos (which ARE in the RTF file -- are not moved to the EPUB file.

So PDFs can't be used! And, RTFs can't be used! Plus, .docx isn't input.

Why offer PDF and RTF as input formats if Calibre will not convert to EPUB?
DVC is offline   Reply With Quote
Old 03-28-2010, 06:00 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
PDF can be used to get an ePub - it is just that any sort of complex formatting tends to mess things up. However novels for instance tend to convert fine. There is also the improved PDF conversion engine that is under development that will be released sometime in the near future (I guess after Kobid gets back from holiday) that is meant to be better, but we do not yet know how much.

As to RTF files they all convert fine for me (including pictures). However I suspect that it is very relevant exactly what format the pictures are in - in youir case they may be a file type that Calibre does not handle. When I have had problems with some RTF files they have often converted better if I load them into Microsoft Word, and then save them as Web page (filtered) and use the resulting HTML in Calibre.
itimpi is offline   Reply With Quote
Old 03-28-2010, 06:55 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Instead of expressing anger, how about trying to educate yourself on the processes involved in converting files. Ask for help with your situation and understand that someone here most likely has run into your situation and can help out.

Calibre is a labor of love by its creator, Kovid and he is amazingly patient in answering folks questions on here even if those folks choose to express themselves in a rude manner. He is currently out of the country on vacation and will be back around the third week of April, but he has been dropping in now and then with help.

Quote:
Originally Posted by DVC View Post
So PDFs can't be used! And, RTFs can't be used! Plus, .docx isn't input.
I've converted many a pdf and rtf file using Calibre.

Many PDFs though by nature are not easily converted to a flowable format that works with a 6inch ereader. Also if the doc you are using links to photos instead of those photos being embedded in the document there could be an issue.

I have always converted my problematic PDF and RTF files to HTML first just to take a look before converting them to epub. I use Mobipocket Creator (free) to convert PDF to HTML and Word to save RTF as filtered HTML.

Sometimes I use the Calibre debug feature to take a look at the doc as it is being converted. This feature is great and allows you to see the file at each point in the process and see what is happening at each step.

From Calibre's FAQ:
Quote:
What are the best source formats to convert?

In order of decreasing preference: LIT, MOBI, EPUB, HTML, PRC, RTF, PDB, TXT, PDF
You can see that PDF is at the bottom of the list of preferred source formats to use for conversions. Kovid is in the middle of rewriting the PDF conversion process but it could be a while before it is released.

The user manual is very extensive, check it out for other tips.

Update: Once you have an epub file you can always touch it up with Sigil an epub editing package.

Last edited by DoctorOhh; 03-28-2010 at 09:27 AM.
DoctorOhh is offline   Reply With Quote
Old 03-28-2010, 08:35 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Most likely the image sin the RTF file are in an unsupported format. As itimpi said, use word to save the rtf as html.

And I don't apreciate your tone, no one is forcing you to use calibre, feel free to find an alternative that works better for you.
kovidgoyal is online now   Reply With Quote
Old 03-28-2010, 09:32 AM   #5
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
Quote:
What are the best source formats to convert?

In order of decreasing preference: LIT, MOBI, EPUB, HTML, PRC, RTF, PDB, TXT, PDF
If I were in the original poster's position, then I think that I'd be making a word doc, including all the pictures etc, then saving it as a lit book. After that I'd run it though Calibre.

You can get the Microsoft lit plug-in free here:
http://www.microsoft.com/downloads/d...DisplayLang=en

Here's our wiki entry on LIT:
https://wiki.mobileread.com/wiki/LIT
Patricia is offline   Reply With Quote
Old 03-28-2010, 09:34 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by itimpi View Post
PDF can be used to get an ePub - it is just that any sort of complex formatting tends to mess things up. However novels for instance tend to convert fine.
Actually, they do not convert fine. A novel length text PDF will convert ok at best. It will have errors. No program can convert a novel length PDF to any other format without errors.
JSWolf is offline   Reply With Quote
Old 03-28-2010, 09:40 AM   #7
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
That's very true, Jon. At the very least there will be an awkward line-break where the PDF starts a new page. Usually the italics disappear too.

And this happens whatever one uses for the conversion. I've tried Book Designer, Calibre and Mobipocket Creator. I just resign myself to the fact that there will never be a perfectly accurate automatic conversion, then set about editing it.
Patricia is offline   Reply With Quote
Old 03-28-2010, 09:43 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Very often to best way to convert a PDF file to a more usable format is to use an OCR program rather than to try and convert the PDF directly.
HarryT is offline   Reply With Quote
Old 03-28-2010, 09:44 AM   #9
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
Quote:
Originally Posted by DVC View Post
RTFs can't be used! Plus, .docx isn't input.
It takes a couple of seconds to open a docx file then to use "save as" and save it as a doc.

I can see that you are frustrated, DVC, but there are often quite simple workarounds.
Patricia is offline   Reply With Quote
Old 03-28-2010, 10:13 AM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Patricia knows as well as I do that there are no shortcuts to producing a really good-looking, thoroughly-proofed, eBook. It's a process that cannot be entirely automated, and which does involve a lot of "human" decision making. Proof-reading is an especially time-consuming - but absolutely vital - activity.
HarryT is offline   Reply With Quote
Old 03-28-2010, 10:53 AM   #11
animedude01
Addict
animedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheeseanimedude01 can extract oil from cheese
 
animedude01's Avatar
 
Posts: 254
Karma: 1200
Join Date: Jul 2009
Location: Los Angeles
Device: DR1000S, ILIAD2, Nokia n900, Kindle for PC, Astak EZReader Pro
Conversion is always difficult because there are so many variables. How was the original created? Is the PDF straight text or scanned images? Remember, PDF is a container and there can be almost anything inside.

If you have a .docx, use Word or OpenOffice to save it as an HTML file, edit the HTML to get as clean a source as possible, then use Calibre or Sigil to convert the HTML to ePub. You may still need to edit the ePub to tweak things.
animedude01 is offline   Reply With Quote
Old 03-28-2010, 11:18 AM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Patricia View Post
That's very true, Jon. At the very least there will be an awkward line-break where the PDF starts a new page. Usually the italics disappear too.

And this happens whatever one uses for the conversion. I've tried Book Designer, Calibre and Mobipocket Creator. I just resign myself to the fact that there will never be a perfectly accurate automatic conversion, then set about editing it.
Even Adobe Acrobat Professional makes errors in the conversion.
JSWolf is offline   Reply With Quote
Old 03-28-2010, 06:46 PM   #13
DVC
Junior Member
DVC began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2010
Device: iPhone 3Gs
Lot's of answers, but they all make my point.

First, .doc is not supported so that route is closed.

Second, converting to HTML will destroy a book's format. The result will be as bad as a web-page. I know, I've used Word to make HTMLs.

LIT? What the hell is that? I don't know where you live, but there is only one universal document standard and that is PDF. Since the rules of decoding PDF are decades old, why would anyone design a conversion program that accepted PDF as the "last" choice? In reality, PDF is the only input format needed for making eBooks.

Why list RTF if it can't convert an RTF with pictures. Telling me there may be pix format that is not supported only means RTF is not really fully supported. RTF means RTF as it comes from any software that produces it. Since almost every RTF document includes pix -- a conversion program has be able to deal with all pix. What's so radical about JPEGs?

And, the suggestions that one convert to X and then convert to Y to get to Z are just plain silly. At each step, more formating will be screwed-up. When one uses a graphics conversion program -- it just does the job.

And, since EPUB is designed for BOOKS -- the comments that one cannot expect to convert BOOKS kind of defeats the purpose of a CONVERTER TO EPUB. Now, were there a way to interactively edit the EPUB output so one could fix conversion problems -- it would be acceptable given the likelihood of conversion errors. But, there isn't. The Debug feature is a joke -- a folder full of .jpegs.)

Sorry, to be so negative, but Caliber simply doesn't make eBooks than can be sold. So, I'm not sure why it was written. Converting LIT to EPUB. Why?

Last edited by DVC; 03-28-2010 at 06:52 PM.
DVC is offline   Reply With Quote
Old 03-28-2010, 07:17 PM   #14
Timoleon
Time Enough at Last
Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.Timoleon ought to be getting tired of karma fortunes by now.
 
Timoleon's Avatar
 
Posts: 387
Karma: 1151316
Join Date: Feb 2008
Location: New England
Device: iPad 3, iPhone 5, Kindle 3, Fire, Sony PRS-350
"Sorry, to be so negative, but Caliber simply doesn't make eBooks than can be sold. So, I'm not sure why it was written. Converting LIT to EPUB. Why?"

Why not? LIT and EPUB are basically wrappers for HTML, and are related, so it makes perfect sense to me to convert one to the other.

Still don't know where you are coming from on all this...
Timoleon is offline   Reply With Quote
Old 03-28-2010, 07:21 PM   #15
Elfwreck
Grand Sorcerer
Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.Elfwreck ought to be getting tired of karma fortunes by now.
 
Elfwreck's Avatar
 
Posts: 5,185
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
Quote:
Originally Posted by DVC View Post
Lot's of answers, but they all make my point.

First, .doc is not supported so that route is closed.
Anything that makes .doc & .docx files will save as .rtf instead. RTFs are often much larger files than .doc, but the formatting is all there. Supporting .doc may require licensing agreements with Microsoft, which are beyond the scope of most open-source projects. Or it might just involve an extra bit of code to convert .doc files to .rtf internally... in which case, since it is an open source project, anyone who's interested is welcome to write the code for that.

Quote:
Second, converting to HTML will destroy a book's format. The result will be as bad as a web-page. I know, I've used Word to make HTMLs.
Word docs saved as HTML make lousy webpages, but often good ebooks. Ebooks work best as markup-based documents, like HTML and PDB (which I'm not recommending you deal with) not layout-based documents like PDF and word processor documents.

Quote:
LIT? What the hell is that?
LIT is Microsoft's ebook format, one of the earliest commercial ebook types, and has some of the better complex formatting options. That you have no idea what it is indicates you're new to ebooks in general.

Quote:
I don't know where you live, but there is only one universal document standard and that is PDF.
No, there's not. If there's a universal doc standard, it's txt.
PDF is new, rapidly-changing, and contains so many kinds of content that it's almost impossible to give anyone advice on how to work with PDFs. It's a very useful format--I love PDFs--but because it's got so many options about what can go in it, it's not always easy to get content out of it in a useful format.

However, you could bypass Calibre altogether by taking your RTFs and formatting them for the size of screen the ebooks will be read on. I make a lot of 6"-screen sized PDFs for my own reading. That way, I get exact control of the layout, the images, the fonts and so on.

Quote:
Since the rules of decoding PDF are decades old, why would anyone design a conversion program that accepted PDF as the "last" choice? In reality, PDF is the only input format needed for making eBooks.
PDF *EN*coding is more than 15 years old, and has only been common for about the last 7 years. (Not "decades." Really. PDF was created in 1993.) *DE*coding is younger, and changes every couple of years with new editions of Acrobat, as PDFs gain more abilities. I've been working professionally with PDFs for 10 years, and it's changed a *lot* in that time. I still miss features from Acrobat 4.0, but I wouldn't want to go back to them & lose some of the options now available to PDFs.

Quote:
Why list RTF if it can't convert an RTF with pictures. Telling me there may be pix format that is not supported only means RTF is not really fully supported. RTF means RTF as it comes from any software that produces it. Since almost every RTF document includes pix -- a conversion program has be able to deal with all pix. What's so radical about JPEGs?
PDB can only support .png images. If a converter didn't support moving images from RTF to PDB because they were JPGs, that doesn't mean RTF conversion isn't supported.

That said, ePub can support several image types. However, the formatting of the images in the RTF file may affect how (or whether) they convert to another filetype--inline images may convert, but images in frames may not. Images that are links instead of embedded may not import. Images of a type not displayable by the reader (browser, mobile device, e-ink screen, whatever) may be present in the file, but not viewable.

Getting a document to convert correctly involves knowing all the filetypes in the book, and how they intereract.

You are, of course, welcome to code your own ePub files by hand; they're HTML in a zip file, with a metadata file that basically tells the reader "this is an ePub file." That Calibre tries to assemble all the relevant data from all sorts of initial formatting is amazing.

Quote:
And, since EPUB is designed for BOOKS -- the comments that one cannot expect to convert BOOKS kind of defeats the purpose of a CONVERTER TO EPUB. Now, were there a way to interactively edit the EPUB output so one could fix conversion problems -- it would be acceptable given the likelihood of conversion errors. But, there isn't. The Debug feature is a joke -- a folder full of .jpegs.)
There is a way to edit the ePub output. Change the .epub extension to .zip, unzip the folder, and edit away in your HTML editor of choice.

Quote:
Sorry, to be so negative, but Caliber simply doesn't make eBooks than can be sold. So, I'm not sure why it was written. Converting LIT to EPUB. Why?
I don't make ebooks to sell them; I make them to read. If you're making ebooks to sell, it's a bit ridiculous to complain that a free, open-source program isn't making them the way you want them.

If you want to make sale-able ebooks with complex formatting, you may want to use a program like Bookdesigner that gives more precise control. Calibre can give a lot of control, but it's through extra lines of coding; Bookdesigner has a GUI for its editing. However, it's not simple & quick to learn.

Or you can learn to hand-code ePub files. I'm told that once the basics are learned, it can go fairly quickly. For myself, I make a lot of 3.46"x4.57" PDFs, because I'm comfortable tinkering with formatting in Word, and haven't figured out HTML/CSS editing yet.
Elfwreck is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to convert RTF files to ePub Chrysanthemum Calibre 14 07-07-2010 01:57 PM
multiple photos in .epub Xabache ePub 9 06-27-2010 05:05 PM
Can't convert RTF files sglinert Calibre 10 06-08-2010 11:03 AM
Can't convert RTF files sglinert Calibre 0 06-06-2010 10:14 PM
Editing RTF Files DougFNJ Sony Reader 3 11-29-2007 01:27 PM


All times are GMT -4. The time now is 04:58 AM.


MobileRead.com is a privately owned, operated and funded community.