Duplicated ToC entries in PDF to any format conversion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
DESCRIPTION:
Conversion of any PDF book to any format (e.g. epub, mobi or azw3) always ends with many times duplicated links (even in wrong levels) in table of contents, no matter what options for ToC you select.
ENVIRONMENT:
Calibre version: 3.14 (and all versions before)
OS: Any
REPRODUCIBILITY: Always
STEPS TO REPRODUCE:
1) Add an PDF book into the Calibre
2) Select the book and start conversion by clicking Convert book > Convert individually
3) Select output format in the field located in the upper right corner (e.g. EPUB or AZW3)
4) Click the Table of Contents in the left column
5) Configure options for ToC in the main window, e.g.:
- Uncheck "Allow duplicate links when creating the Table of Contents"
- Check "Do not add detected chapters to the Table of Contents"
- Check "Manually fine-tune the ToC after conversion is completed"
6) Click the OK button in order to start conversion process
EXPTECTED BEHAVIOUR:
The book should contain ToC without duplicated links in valid levels and sublevels, e.g.:
- Chapter 1
-- Subchapter 1
--- Subsubchapter 1
--- Subsubchapter 2
-- Subchapter 2
- Chapter 2
...
ACTUALLY BEHAVIOUR:
Table of contents is created with duplicated links; the same link is present many times in different levels of ToC, e.g.:
- Chapter 1
-- Subchapter 1
--- Subsubchapter 1
- Subchapter 1 --> duplicated, not valid level
-- Subsubchapter 1 --> duplicated, not valid level
-- Subsubchapter 2
- Subsubchapter 1 --> duplicated, not valid level
- Subsubchapter 2 --> duplicated, not valid level
- Subchapter 2 --> duplicated, not valid level
- Chapter 2
NOTE:
It seems there's some kind of loop passing through the whole ToC everytime it enters into new subchapter.
Changed in calibre: | |
status: | Invalid → New |
Attach a PDF file demonstrating/ reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.
status incomplete