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

            Bug ID: 150164
           Summary: PDF exporter's "Export outlines as named destinations"
                    does not export outlines, but bookmarks
           Product: LibreOffice
           Version: 7.3.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: gabriel.cra...@outlook.com

Created attachment 181433
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181433&action=edit
Writer document with six headings and two bookmarks

The PDF Reference version 1.6, section 8.2.2, defines "Outline" as:

The outline consists of a tree-structured hierarchy of outline items (sometimes
called bookmarks), which serve as a visual table of contents to display the
document’s structure to the user.

In other words, what LibreOffice calls "Headings" in the Navigator pane and the
Insert > Cross-reference menu are officially called "Outline items" (although
"Bookmarks" is also recognized) by the PDF standard.

These "Bookmarks" should not be confused with what LibreOffice calls
"Bookmarks" in the Navigator pane and the Insert > Cross-reference menu, which
are named references to arbitrary text segments and have no concept of
hierarchy.

Given the above, I would expect the PDF exporter's "Export outlines as named
destinations" to export LibreOffice's "Headings" as named destinations.
Instead, it exports LibreOffice's "Bookmarks".

The attached lorem_ipsum.odt has a total of six "Headings" and two "Bookmarks".
Running Poppler's pdfinfo utility on the exported lorem_ipsum.pdf produces the
following output:

$ pdfinfo -dests lorem_ipsum.pdf 
Page  Destination                 Name
   1 [ XYZ   92  736 null      ] "Dolor2520sit2520amet"
   2 [ XYZ   92  627 null      ] "Sodales2520posuere2520metus2520id"

To the best of my knowledge, there is no way to export LibreOffice's "Headings"
as named destinations without manually creating a "Bookmark" for each
"Heading".

Thus, the option should be renamed to something in the vein of "Export
bookmarks as named destinations". Whether a separate "Export headings as named
destinations" option should be implemented is, I believe, matter for another
ticket.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to