Bug 142129 - Exported PDF of master document with hidden sections containing headings shows headings anyway
Summary: Exported PDF of master document with hidden sections containing headings show...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2021-05-06 12:09 UTC by Olivier Hallot
Modified: 2021-06-08 15:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Master doc with one sub doc (chapter) (23.70 KB, application/vnd.oasis.opendocument.text-master)
2021-05-06 12:09 UTC, Olivier Hallot
Details
Chapter for master doc (119.11 KB, application/vnd.oasis.opendocument.text)
2021-05-06 12:09 UTC, Olivier Hallot
Details
Resulting PDF with the issue (175.07 KB, application/pdf)
2021-05-06 12:11 UTC, Olivier Hallot
Details
List of bookmarks (on the left) and ToC on the document. (92.66 KB, image/png)
2021-06-07 13:37 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2021-05-06 12:09:17 UTC
Created attachment 171695 [details]
Master doc with one sub doc (chapter)

On exporting to PDF of a master document with the following conditions

1) chapters has hidden sections controlled by master
2) chapter has headings in chapter numbering inside hidden sections

Actual results: The TOC used in PDF shows entries that should be hidden/not there

Expected results: NO TOC entries for hidden section in PDF

The attached  files shows it.

The master document attached has one chapter (Preface).

The chapter has one hidded section, containing the "Copyright " heading

On exporting to PDF the hidded section is not shown (OK!), but the PDF TOC still shows it.
Comment 1 Olivier Hallot 2021-05-06 12:09:58 UTC
Created attachment 171696 [details]
Chapter for master doc
Comment 2 Olivier Hallot 2021-05-06 12:11:12 UTC
Created attachment 171697 [details]
Resulting PDF with the issue

The PDF bookmark list (used as TOC) shows the hidden "Copyright" heading, and should not.
Comment 3 Dieter 2021-05-22 09:06:53 UTC
(In reply to Olivier Hallot from comment #0)
> Actual results: The TOC used in PDF shows entries that should be hidden/not
> there

After index update entries in TOC disappear. And I won't expect, that there is an index update while exporting to PDF. So I would say NOTABUG.

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1675a68526c43c6c6e4dc850ee911f0c1de75c88
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 4 Olivier Hallot 2021-06-07 13:36:27 UTC
Slight misunderstanding here, the ToC I'm referring is the PDF list of bookmarks that acts as ToC for the PDF. The attached image pick the difference between the document ToC and the  list of bookmarks (on the left, and includes the "copyright" entry).
Comment 5 Olivier Hallot 2021-06-07 13:37:22 UTC
Created attachment 172677 [details]
List of bookmarks (on the left) and ToC on the document.