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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-31-2012, 10:09 AM   #1
vishnu.kumar
Junior Member
vishnu.kumar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
Exclamation Extract TOC from EPUB

Hi,

I am using Calibre 0.8.38 in Ubuntu 12.04.
I use the command-line tool 'ebook-convert' to convert a EPUB to PDF.
But the TOC is not converted to PDF Bookmarks.

Can anyone tell me which option i should use for that?
vishnu.kumar is offline   Reply With Quote
Old 07-31-2012, 10:45 AM   #2
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: 37,777
Karma: 18492088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Why would you want to convert ePub to PDF? Why not just read the ePub as is?
JSWolf is offline   Reply With Quote
 
Advertisement
Old 07-31-2012, 10:50 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: 8,885
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by vishnu.kumar View Post
Can anyone tell me which option i should use for that?
I don't believe this is an option.
DoctorOhh is offline   Reply With Quote
Old 07-31-2012, 11:17 AM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Sigil (beta) 5.902 TOC generator now has an option to generate an 'Inline' TOC page from the normal (NCX) one.
So, try that, place the file (order) as desired, and see if that helps
theducks is offline   Reply With Quote
Old 08-07-2012, 11:16 AM   #5
vishnu.kumar
Junior Member
vishnu.kumar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
Question

Sorry, i brought a confusion in here.

Actually i just wanted the TOC.
I am converting the EPUB->PDF->SWF.
To index the swfs into a flashbook i need the TOC.

I thought if it converts to a PDF, then i can take TOC from the PDF metadata.
But then as you said, the TOC is added in page.

So, Is there any other way to extract TOC seperately??
vishnu.kumar is offline   Reply With Quote
Old 08-07-2012, 11:53 AM   #6
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by vishnu.kumar View Post
Sorry, i brought a confusion in here.

Actually i just wanted the TOC.
I am converting the EPUB->PDF->SWF.
To index the swfs into a flashbook i need the TOC.

I thought if it converts to a PDF, then i can take TOC from the PDF metadata.
But then as you said, the TOC is added in page.

So, Is there any other way to extract TOC seperately??
IIRC
EPUB > Mobi generates a 'inline TOC' from the NCX (Mobi does not use NCX)
Converting Back ( Use a New folder/Test Library) should now have a book with the a TOC page that you could copy from the Tweak EPUB file manager)
theducks is offline   Reply With Quote
Old 08-07-2012, 12:01 PM   #7
vishnu.kumar
Junior Member
vishnu.kumar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
Thanks dude.

But is the step possible over Linux command line?
vishnu.kumar is offline   Reply With Quote
Old 08-07-2012, 12:19 PM   #8
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by vishnu.kumar View Post
Thanks dude.

But is the step possible over Linux command line?
You are Command line only?
All features that I listed work on All platforms in the GUI.

But since an EPUB is basically a Zip File and you will throw the unzipped folder away after saving the correct (the one with the TOC) file, that should work also instead of using Tweak EPUB to get at the file with the TOC.
theducks is offline   Reply With Quote
Old 08-07-2012, 12:23 PM   #9
vishnu.kumar
Junior Member
vishnu.kumar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
Yup,

Am command line only dude.

GUI based wont work for me as i am doing a shell script for all this process. I used the command
Code:
xvfb-run ebook-convert file.epub file.pdf
to convert the epub to pdf

So any commands you can provide me??
vishnu.kumar is offline   Reply With Quote
Old 08-07-2012, 01:04 PM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,408
Karma: 43171350
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There are currently no calibre options that will convert an ePub ToC into PDF bookmarks. None that I know of anyway.
DiapDealer is offline   Reply With Quote
Old 08-08-2012, 04:37 AM   #11
vishnu.kumar
Junior Member
vishnu.kumar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
Quote:
Originally Posted by DiapDealer View Post
There are currently no calibre options that will convert an ePub ToC into PDF bookmarks. None that I know of anyway.
But can it be atleast extracted so that i can manipulate with it?
vishnu.kumar is offline   Reply With Quote
Old 08-08-2012, 07:54 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,408
Karma: 43171350
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by vishnu.kumar View Post
But can it be atleast extracted so that i can manipulate with it?
I'm not sure I understand what you're asking. If you're talking about being able to manipulate the physical toc.ncx file from an ePub, then yes. Simply unzip the ePub (it's a zip archive with a different extension) and have a look at the toc.ncx file. But that has nothing to do with calibre or any of its conversion options.
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-level TOC broken in epub->epub conversion siebert Conversion 14 03-09-2011 06:38 PM
ePub TOC to mobi TOC edmnddntes Conversion 5 01-24-2011 03:56 AM
Epub to Epub loses TOC edbro Calibre 6 10-12-2010 05:24 PM
epub TOC crutledge ePub 2 02-14-2010 05:57 PM
Extract html from epub Waltarro ePub 3 08-27-2009 06:21 AM


All times are GMT -4. The time now is 11:49 PM.


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