Created attachment 114667 [details]
ODT file with headings, manual ToC entries and a ToC
LO Writer allows for creating Tables of Content (ToC). ToC entries are created by default from two sources:
a. paragraphs with "Heading [1-10]" paragraph style;
b. manually-added index entries (Menu Insert -> Indexes and tables -> Entry, Index Type: Table of Content)
c. optionally: other, selected paragraph styles.
When exporting a odt file to PDF, LibreOffice creates a bookmark structure by default. LO creates that structure based on Headings (above: a.), but it seems to ignore ToC entries that are based on index marks (above: b.).
ToC entries should appear as PDF bookmarks in the exported PDF, regardless they are based on headings (paragraph style sheet) or on manually inserted index marks.
LO creates a bookmark structure solely based on the headings.
Steps to reproduce:
- create new writer document;
- insert some text, assign "Heading 1" style;
- insert another paragraph, assign "Text Body" style;
- select some content inside the text paragraph (single word);
- mark selected word as ToC entry (Menu Insert -> Indexes and tables -> Entry, Index Type: Table of Content);
- optionally: create a ToC. In that ToC, the heading and the manual ToC entry should appear;
- export as PDF, make sure that the "Export Bookmarks" option ("General" Tab, section "General") is active;
- the resulting PDF has only one ToC entry (the heading); a ToC entry for the "manual" entry is missing.
Alternatively, use the attached odt / export it as PDF and compare the LO Writer ToC with the PDF bookmark structure.
Maybe this bug is connected with https://bugs.documentfoundation.org/show_bug.cgi?id=73295 ?
The attached file is a simple odt document with some headings and two manual ToC entries. The manual entries appear in the ToC inside LO, but they don't appear in an exported PDF.
Created attachment 114668 [details]
PDF created from example ODT, missing manual ToC entries
Reproducible with LO 184.108.40.206, Win 8.1
But could it be that this is linked to the fact that the manual entries in the ToC have no links to the corresponding paragraphs (-> move the mouse cursor over the ToC entries -> already happens in the ODT file, not pdf specific)?
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.5 or 5.1.2 https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
- Update the version field
- Reply via email (please reply directly on the bug tracker)
- Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword
Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for your help!
-- The LibreOffice QA Team This NEW Message was generated on: 2016-04-16
Bug still present in Version: 220.127.116.11 Build ID: 1:5.0.5~rc2-0ubuntu2 - tested with Ubuntu Linux x86_64. Same behaviour as already described.
(In reply to A (Andy) from comment #2)
> But could it be that this is linked to the fact that the manual entries in
> the ToC have no links to the corresponding paragraphs (-> move the mouse
> cursor over the ToC entries -> already happens in the ODT file, not pdf
True, those "manual entries" lack hyperlinks already (i.e. before the PDF export) in the attached "test_headings_index_entries.odt" file.
*** This bug has been marked as a duplicate of bug 73295 ***
*** This bug has been marked as a duplicate of bug 65463 ***