Bug 264155 - Bookmarks / toc are always expanded, option for expand or collapse a bookmark improves the readability enormously
Summary: Bookmarks / toc are always expanded, option for expand or collapse a bookmark...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 06:55 EST by Wilco CLA
Modified: 2014-01-16 04:32 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilco CLA 2009-02-09 06:55:42 EST
When viewing a report as a pdf file, the bookmarks / table of contents are always fully expanded.
The readability of the TOC / Bookmarks improves enormously when a option is added to expand or collapse a bookmark /toc when viewing a PDF.

So what I mean is when you have a long list of TOC / Bookmarks at a certain level and you are creating /viewing a pdf. That list of TOC / Bookmarks is always fully expanded.

When there is a option to say that at a certain level the bookmarks must not be expanded, the list of TOC / Bookmarks is then shorter a better readable.

Maybe this option can be added to 'Table of Contents' group of the Edit Group window.
iText is used to generate PDF files, I think there is a option in itext:
chapter.setBookmarkOpen (false);

to do this.
Comment 1 Gang Liu CLA 2009-02-11 21:21:46 EST
We can support this feature in futher release.
Comment 2 Jason Weathersby CLA 2009-04-06 13:17:33 EDT
This seems to me to be a simple fix.  We should add a property to the TOC property that is set to collapse or no collapse.  In the PDF Emitter the change required is this;

TOCHandler.java

			String fontStyle = style.getFontStyle( );
			String fontWeight = style.getFontWeight( );
			int styleValue = PropertyUtil.getFontStyle( fontStyle, fontWeight );
			outline.setStyle( styleValue );
                        //add this line to collapse
                        //should be based on property
			outline.setOpen(false);
Comment 3 Minka Bloch CLA 2014-01-16 04:32:20 EST
hi all,

what the status of this bug? we need a solution to this problem we have a lot of TOC in a report and  our users complain that the TOC is fully expanded...