07-31-2012, 09:09 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
|
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? |
07-31-2012, 09:45 AM | #2 |
Resident Curmudgeon
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why would you want to convert ePub to PDF? Why not just read the ePub as is?
|
07-31-2012, 09:50 AM | #3 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
07-31-2012, 10:17 AM | #4 |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
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 |
08-07-2012, 10:16 AM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
|
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?? |
08-07-2012, 10:53 AM | #6 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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) |
|
08-07-2012, 11:01 AM | #7 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
|
Thanks dude.
But is the step possible over Linux command line? |
08-07-2012, 11:19 AM | #8 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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. |
|
08-07-2012, 11:23 AM | #9 |
Junior Member
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 So any commands you can provide me?? |
08-07-2012, 12:04 PM | #10 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
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.
|
08-08-2012, 03:37 AM | #11 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2012
Location: Bangalore
Device: none
|
|
08-08-2012, 06:54 AM | #12 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multi-level TOC broken in epub->epub conversion | siebert | Conversion | 14 | 03-09-2011 05:38 PM |
ePub TOC to mobi TOC | edmnddntes | Conversion | 5 | 01-24-2011 02:56 AM |
Epub to Epub loses TOC | edbro | Calibre | 6 | 10-12-2010 04:24 PM |
epub TOC | crutledge | ePub | 2 | 02-14-2010 04:57 PM |
Extract html from epub | Waltarro | ePub | 3 | 08-27-2009 05:21 AM |