Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2013, 10:40 AM   #16
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: 36,655
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by BlackVoid View Post
Yes, that is true if you want a perfect conversion. But a readable conversion can be had with much less work. I used to use BookDesigner 5 to convert from PDF to LRF with acceptable results and minimal editing. Unfortunately BookDesigner does not support ePub, so an extra step would be needed.

Calibre is also one of the worst converters, it totally ruins paragraph and page layout with 1 line and empty pages, etc.

I will try the methods described by the thread starter.
Calibre is not as bad as you say. But given that I like my formatting a certain way, I do take the Calibre converted ePub and tweak it so it displays as I want. I also make sure the underlying code is fairly clean.
JSWolf is offline   Reply With Quote
Old 02-17-2013, 10:49 PM   #17
Pranananda
Connoisseur
Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.Pranananda can see what is invisible to the naked eye.
 
Pranananda's Avatar
 
Posts: 97
Karma: 115862
Join Date: Apr 2010
Location: Humboldt County, California
Device: ipad, iPod touch, JetBook Lite
saoir, on the Mac you might try the free application TextWrangler. It has regular expression support, so you can find and replace tags. It also can find text across line boundaries. And you can specific a range using the text selection for where a "Replace All" operation will take place. It also allows you to write perl or shell scripts and use those scripts to modify the selected text.
Pranananda is offline   Reply With Quote
 
Enthusiast
Old 08-19-2014, 04:43 AM   #18
gekkoh
Junior Member
gekkoh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2014
Device: iPad
This is a great topic! Lots of great tips.

I tried converting a PDF to epub, but having some issues — the book has lots of tables and equations, and they all just end up like regular text thrown around the page and totally messed up.

Does anyone have any tips to handle tables and equations? Can they be automatically converted to images to make sure they look exactly as in the PDF?

Thanks!
gekkoh is offline   Reply With Quote
Old 08-19-2014, 07:20 AM   #19
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,907
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
For the best PDF to ePUB result you really must use the OCR method. That is still the best method and after the OCR you have to check the results with the PDF to ensure it is correct.
For example ABBYY has support for tables, but I would not recommend exporting to ePUB directly. It will generate a mess.
Equations are troublesome, since MathML is not supported in ePUB2 (it should be in ePUB3, but most readers or applications cannot read ePUB3). I usually recreate the equation at the Codecogs site and create a SVG from it. That one can be easily imported into an ePUB.
Toxaris is offline   Reply With Quote
Old 08-19-2014, 07:51 AM   #20
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 1,994
Karma: 1405001
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Assuming you can convert tables or formulas, there remains the issue of size. A table with over 3-4 columns can get folded, spindled and mutilated by anyone with a finger on the increase text size button.

Sometimes it is better to break them apart, make a rotated image or figure out another way to portray the information than trying to put a 16 column table in a 5" screen epub.
mrmikel is offline   Reply With Quote
Old 08-19-2014, 08:10 AM   #21
gekkoh
Junior Member
gekkoh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2014
Device: iPad

I was hoping there is some automated way to convert the tables and equations, but I guess I will have to do it all manually.
gekkoh is offline   Reply With Quote
Old 08-19-2014, 01:07 PM   #22
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by gekkoh View Post

I was hoping there is some automated way to convert the tables and equations, but I guess I will have to do it all manually.
There is some tools that can convert equations to SVG. See our wiki for some of them. SVG is supported in ePub 2.

Dale
DaleDe is offline   Reply With Quote
Old 08-19-2014, 10:31 PM   #23
crich70
Grand Sorcerer
crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.
 
crich70's Avatar
 
Posts: 6,378
Karma: 21184087
Join Date: Feb 2010
Location: Monroe Wisconsin
Device: K3, Kindle Paperwhite, Calibre, and Mobipocket for Pc (netbook)
Quote:

If you are going to use Calibre:
7. Drop your pdf file into Calibre.

8. Convert you pdf into htmlz.

Actually, Htmlz is nothing to do with html. It is a special zip file, just like epub which has all the necessary files inside to produce an ebook.

You can use Calibre's conversion settings to remove fonts, font size, margin etc.

9. Once conversion is complete, open htmlz file with a zip software, you will see a file called index.html along with css and opf files. You can edit index file and repackage.

10. During final conversion, use htmlz as your source.
Could you post some suggestions on what those conversion settings should be to get a good looking result?
crich70 is offline   Reply With Quote
Old 08-19-2014, 10:40 PM   #24
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: 36,655
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by crich70 View Post
Could you post some suggestions on what those conversion settings should be to get a good looking result?
There are NO conversion settings that can get an error free conversion. The only way to do that is to 100% A/B compare the converted ePub with the PDF until you have every single character compared.
JSWolf is offline   Reply With Quote
Old 08-19-2014, 11:04 PM   #25
crich70
Grand Sorcerer
crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.crich70 ought to be getting tired of karma fortunes by now.
 
crich70's Avatar
 
Posts: 6,378
Karma: 21184087
Join Date: Feb 2010
Location: Monroe Wisconsin
Device: K3, Kindle Paperwhite, Calibre, and Mobipocket for Pc (netbook)
Quote:
Originally Posted by JSWolf View Post
There are NO conversion settings that can get an error free conversion. The only way to do that is to 100% A/B compare the converted ePub with the PDF until you have every single character compared.
Actually I was referring to the line in the OP:
Quote:
You can use Calibre's conversion settings to remove fonts, font size, margin etc.
When I posted the question I was talking about that. I am aware that there is no magic setting to get a completely 100% clean conversion from PDF to Epub. If someone did manage to develop such a program they could make a fortune I imagine.
crich70 is offline   Reply With Quote
Old Yesterday, 04:02 AM   #26
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,317
Karma: 12005829
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by crich70 View Post
Actually I was referring to the line in the OP:

When I posted the question I was talking about that. I am aware that there is no magic setting to get a completely 100% clean conversion from PDF to Epub. If someone did manage to develop such a program they could make a fortune I imagine.
Hey, Crich:

Given that not even ADOBE can do it, I suspect we can all agree that it's not in the immediate pipeline! ;-)

Hitch
Hitch is offline   Reply With Quote
Old Yesterday, 02:05 PM   #27
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by crich70 View Post
Actually I was referring to the line in the OP:

When I posted the question I was talking about that. I am aware that there is no magic setting to get a completely 100% clean conversion from PDF to Epub. If someone did manage to develop such a program they could make a fortune I imagine.
One trick is to print the PDF to a PDF file in lieu of the printer. While printing will lose all intelligence like book marks and live links it will rearrange the text to be in order and make the file more uniform. This can be a major advantage in converting PDF successfully. Many of the PDF files are edited, particularly those made by Adobe. The editing process does not produce a clean document but rather patches it.

Dale
DaleDe is offline   Reply With Quote
Reply

Tags
pdf, pdf conversion, pdf to epub, pdf to mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Ultimate Kobo Tips & Tricks Thread ficbot Kobo Reader 307 04-29-2014 03:46 PM
Conversion Issues - PDF/Word to Mobi/ePub MajC Conversion 1 02-14-2011 08:27 AM
Any chance for chm to epub/mobi/pdf conversion support joblack Calibre 4 11-02-2010 01:06 AM
PDF to Mobi Conversion rayh Calibre 2 09-24-2010 02:33 AM
Epub/Mobi TO pdf conversion problem Hitch Calibre 4 06-15-2010 05:28 PM


All times are GMT -4. The time now is 08:11 AM.


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