01-26-2024, 09:53 AM | #1 |
Zealot
Posts: 148
Karma: 192898
Join Date: Jan 2016
Device: none
|
[PDF to EPUB] Prevent Calibre from appending "Document Outline"?
Hello,
Surprisingly, searching this section for "Document Outline" in titles returned no hit When converting a PDF into EPUB, Calibre appends an annoying "Document Outline" section. Is there a way to tell it not to? Code:
"C:\Program Files\Calibre2\ebook-convert.exe" "001.pdf" "001.epub" --enable-heuristics --no-default-epub-cover --authors "John Doe" --title "Some great book" |
01-26-2024, 10:24 AM | #2 |
creator of calibre
Posts: 44,002
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because calibre does not append any such section. Indeed the string 'document outline' is not even present in calibre's source code.
|
Advert | |
|
01-26-2024, 10:43 AM | #3 |
the rook, bossing Never.
Posts: 11,586
Karma: 87456643
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
It's something already in some of your PDFs.
|
01-26-2024, 11:38 AM | #4 |
Zealot
Posts: 148
Karma: 192898
Join Date: Jan 2016
Device: none
|
It's not in the PDF as far as displayed in SumatraPDF. It's only visible in the EPUB when I run this command to turn the PDF into EPUB:
Code:
"C:\Program Files\Calibre2\ebook-convert.exe" "003.pdf" "003.epub" --enable-heuristics --no-default-epub-cover --authors "Some author" --title "Some book" -- Edit: Must first remove the bookmarks from the input PDF: Code:
cpdf -remove-bookmarks 003.pdf -o 003.NO.BOOKMARKS.pdf "C:\Program Files\Calibre2\ebook-convert.exe" "003.NO.BOOKMARKS.pdf" "003.epub" --enable-heuristics --no-default-epub-cover --authors "Some author" --title "Some book" … Parsing all content... Generating default TOC from spine... … This EPUB file has no Table of Contents. Creating a default TOC EPUB output written to c:\003.epub Output saved to c:\003.epub Last edited by Shohreh; 01-26-2024 at 11:44 AM. |
01-26-2024, 12:52 PM | #5 |
the rook, bossing Never.
Posts: 11,586
Karma: 87456643
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Loads of things are in PDFs that are not displayed in viewers.
|
Advert | |
|
01-26-2024, 12:58 PM | #6 |
creator of calibre
Posts: 44,002
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Want to change "Document" to "Book" on Kindle | Dash | Editor | 2 | 08-23-2023 01:21 AM |
I imported a "kepub.ebub" book into Calibre, but Calibre converted to "epub". Why? | droopy | Calibre | 5 | 12-23-2019 07:33 AM |
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen | GhostRider | Conversion | 0 | 12-22-2017 09:06 AM |
Does Calibre server work when computer is in "Sleep"/can it prevent Sleep | Backdraft | Calibre | 1 | 01-14-2011 07:47 PM |
How to prevent recipe read "files" pdf on web rss? | KRorschachZ | Recipes | 12 | 11-10-2010 02:59 PM |