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.
Created attachment 171696 [details]
Chapter for master doc
Created attachment 171697 [details]
Resulting PDF with the issue
The PDF bookmark list (used as TOC) shows the hidden "Copyright" heading, and should not.
(In reply to Olivier Hallot from comment #0)
> Actual results: The TOC used in PDF shows entries that should be hidden/not
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: 220.127.116.11.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
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).
Created attachment 172677 [details]
List of bookmarks (on the left) and ToC on the document.