https://bugs.documentfoundation.org/show_bug.cgi?id=90495

            Bug ID: 90495
           Summary: PDF: Manually-added ToC entries don't show up in PDF
                    bookmarks
           Product: LibreOffice
           Version: unspecified
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 114667
  --> https://bugs.documentfoundation.org/attachment.cgi?id=114667&action=edit
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.).

Expected behaviour:
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.

Current behaviour:
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to