Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Bookmarks automatically generated in PDF
Bookmarks automatically generated in PDF [message #123079] Thu, 02 February 2006 13:18 Go to next message
Frédéric Ferrant is currently offline Frédéric FerrantFriend
Messages: 75
Registered: July 2009
Member
Helo.
We work with BIRT 1.0 to generate PDF reports.
Our rptdesign files generaly contain many scripted datasets (~50), and
are divided in main sections (9) which are divided in subsections
(almost one subsection per dataset).

I am tying to get this running with BIRT 2.0, fine work
Unfortunately, the PDF generated now contains bookmarks which have
automatically been created for the the tables where a grouping is
done, which I don't need...

So, I have two questions:

1. How can I disable this automatic bookmark generation?

2. How can I manually specify other bookmarks (any
documentationavailable) pointing to the main sections headings, and
how can I name these sections (localization is necessary, I work in
Belgium...)?
Re: Bookmarks automatically generated in PDF [message #123141 is a reply to message #123079] Thu, 02 February 2006 15:37 Go to previous messageGo to next message
floor is currently offline floorFriend
Messages: 93
Registered: July 2009
Member
"Frederic Ferrant" <frederic@ferrant.be> wrote in message
news:t914u1lqulndpr713ajfqf2o7595i6mkuv@4ax.com...
> Helo.
> We work with BIRT 1.0 to generate PDF reports.
> Our rptdesign files generaly contain many scripted datasets (~50), and
> are divided in main sections (9) which are divided in subsections
> (almost one subsection per dataset).
>
> I am tying to get this running with BIRT 2.0, fine work
> Unfortunately, the PDF generated now contains bookmarks which have
> automatically been created for the the tables where a grouping is
> done, which I don't need...
>
> So, I have two questions:
>
> 1. How can I disable this automatic bookmark generation?
>
> 2. How can I manually specify other bookmarks (any
> documentationavailable) pointing to the main sections headings, and
> how can I name these sections (localization is necessary, I work in
> Belgium...)?

I would also like to see how to control the bookmark generation for the pdf
format. That is an awesome feature! Documentation would be great, but at
least a simple description would help me get started.

--floor
Re: Bookmarks automatically generated in PDF [message #123312 is a reply to message #123141] Thu, 02 February 2006 19:28 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 87
Registered: July 2009
Member
As you've discovered, BIRT automatically generates bookmarks or table of
contents values for group values. You can change the values displayed by
going into the group editor and specifying a different expression for the
TOC Item Expression field. Unfortunately, you can't delete the value
specified here so the TOC always displays them (you should file a bug
requesting the ability to delete this value.)

You can specify TOC expressions for other report elements, such as a text
element that displays a section heading. Select the element, then in
Property Editor, specify an expression for the Table of Contents property.

-Diana

"floor" <floorflux@hotmail.com> wrote in message
news:drt93f$ote$1@utils.eclipse.org...
>
> "Frederic Ferrant" <frederic@ferrant.be> wrote in message
> news:t914u1lqulndpr713ajfqf2o7595i6mkuv@4ax.com...
> > Helo.
> > We work with BIRT 1.0 to generate PDF reports.
> > Our rptdesign files generaly contain many scripted datasets (~50), and
> > are divided in main sections (9) which are divided in subsections
> > (almost one subsection per dataset).
> >
> > I am tying to get this running with BIRT 2.0, fine work
> > Unfortunately, the PDF generated now contains bookmarks which have
> > automatically been created for the the tables where a grouping is
> > done, which I don't need...
> >
> > So, I have two questions:
> >
> > 1. How can I disable this automatic bookmark generation?
> >
> > 2. How can I manually specify other bookmarks (any
> > documentationavailable) pointing to the main sections headings, and
> > how can I name these sections (localization is necessary, I work in
> > Belgium...)?
>
> I would also like to see how to control the bookmark generation for the
pdf
> format. That is an awesome feature! Documentation would be great, but at
> least a simple description would help me get started.
>
> --floor
>
>
Re: Bookmarks automatically generated in PDF [message #123582 is a reply to message #123312] Fri, 03 February 2006 08:22 Go to previous messageGo to next message
Frédéric Ferrant is currently offline Frédéric FerrantFriend
Messages: 75
Registered: July 2009
Member
Thank you for the answer.
I still have a question: how do I specify a link to a label in a
'properties' file using the Expression Builder? I need to display a
different bookmark label for each language...
The labels are linked to the properties files using 'localization',
but this isn't possible for 'Table Of Contents' entries... Can I use
the value of a selected label in the Expression Builder? Or is there
another way to do this?
Can you help me?

Another question: what's he difference between 'Bookmarks' and 'Table
of Content' in the Properties editor...?


On Thu, 2 Feb 2006 11:28:11 -0800, "Diana Peh" <diana.peh@actuate.com>
wrote:

>As you've discovered, BIRT automatically generates bookmarks or table of
>contents values for group values. You can change the values displayed by
>going into the group editor and specifying a different expression for the
>TOC Item Expression field. Unfortunately, you can't delete the value
>specified here so the TOC always displays them (you should file a bug
>requesting the ability to delete this value.)
>
>You can specify TOC expressions for other report elements, such as a text
>element that displays a section heading. Select the element, then in
>Property Editor, specify an expression for the Table of Contents property.
>
>-Diana
Re: Bookmarks automatically generated in PDF [message #123594 is a reply to message #123312] Fri, 03 February 2006 08:56 Go to previous messageGo to next message
Frédéric Ferrant is currently offline Frédéric FerrantFriend
Messages: 75
Registered: July 2009
Member
Bug created.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=126308
thanks for the suggestion.

On Thu, 2 Feb 2006 11:28:11 -0800, "Diana Peh" <diana.peh@actuate.com>
wrote:

>As you've discovered, BIRT automatically generates bookmarks or table of
>contents values for group values. You can change the values displayed by
>going into the group editor and specifying a different expression for the
>TOC Item Expression field. Unfortunately, you can't delete the value
>specified here so the TOC always displays them (you should file a bug
>requesting the ability to delete this value.)
>
Re: Bookmarks automatically generated in PDF [message #124172 is a reply to message #123582] Fri, 03 February 2006 20:34 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 87
Registered: July 2009
Member
I don't know the answer to the first question. My guess is that you cannot
localize TOC values. I suggest you submit an enhancement if you want this
functionality.

Bookmarks are for creating hyperlinks between two report elements.
Basically, there are two steps to create such a hyperlink. (1) Select the
target report element and use bookmark to identify it. (2) Select the
source report element, choose the Hyperlink property and specify the
bookmark of the target report element.

Table of contents is for specifying values for the Table of contents that
appears in the Web Viewer. In a PDF report, the table of contents appears as
PDF bookmarks (which has nothing to do with the Bookmark property in
Property Editor).

Does this clear things up?

-Diana


"Frederic Ferrant" <frederic@ferrant.be> wrote in message
news:6b46u157a27ictpm83590na9gpjd3i5md4@4ax.com...
> Thank you for the answer.
> I still have a question: how do I specify a link to a label in a
> 'properties' file using the Expression Builder? I need to display a
> different bookmark label for each language...
> The labels are linked to the properties files using 'localization',
> but this isn't possible for 'Table Of Contents' entries... Can I use
> the value of a selected label in the Expression Builder? Or is there
> another way to do this?
> Can you help me?
>
> Another question: what's he difference between 'Bookmarks' and 'Table
> of Content' in the Properties editor...?
>
>
> On Thu, 2 Feb 2006 11:28:11 -0800, "Diana Peh" <diana.peh@actuate.com>
> wrote:
>
> >As you've discovered, BIRT automatically generates bookmarks or table of
> >contents values for group values. You can change the values displayed by
> >going into the group editor and specifying a different expression for the
> >TOC Item Expression field. Unfortunately, you can't delete the value
> >specified here so the TOC always displays them (you should file a bug
> >requesting the ability to delete this value.)
> >
> >You can specify TOC expressions for other report elements, such as a text
> >element that displays a section heading. Select the element, then in
> >Property Editor, specify an expression for the Table of Contents
property.
> >
> >-Diana
Re: Bookmarks automatically generated in PDF [message #127645 is a reply to message #123594] Thu, 09 February 2006 20:08 Go to previous messageGo to next message
floor is currently offline floorFriend
Messages: 93
Registered: July 2009
Member
I see this bug (126308) is not scheduled to be fixed until 2.1 final.
Basically, there is no way I am going to be able to add new 2.0 reports with
my application when there are tons of irrelevant PDF bookmarks all over
them. The bookmarks don't bother me, but end users can be very picky.

I feel that this is a pretty important bug to fix. I love the TOC feature,
but it should definitely be able to be turned off and controlled. This is
basically just putting more stuff into a report that is unwanted. Just
because it's in a different place than the body of the report doesn't make
it less important than if the unwanted stuff was put in the body!

Another feature I would like to see added to the TOC is being able to
control weather or not is is fully expanded. I personally would rather it
not be fully expanded by default.

Just some thoughts,

floor
Re: Bookmarks automatically generated in PDF [message #127990 is a reply to message #127645] Fri, 10 February 2006 08:38 Go to previous messageGo to next message
Tomas Vala is currently offline Tomas ValaFriend
Messages: 41
Registered: July 2009
Member
Agreed. I am concerned about TOC hiearchy and unavoidable auto-generation
as well. The situation is pretty hot for us who can't wait until BIRT 2.1
final is released. However there still exist an option to somehow
switch-off PDF TOC generation completely in BIRT source-code and build a
customized version in meantime.
Re: Bookmarks automatically generated in PDF [message #128554 is a reply to message #127990] Fri, 10 February 2006 21:15 Go to previous messageGo to next message
floor is currently offline floorFriend
Messages: 93
Registered: July 2009
Member
Thomas,

If you find out how to switch off the PDF TOC in the source, please post it!
Eventually I'll probably be searching for that, too, and figuring out how to
build the war myself. Perhaps the code change will be posted as a
workaround in BugZilla?

--floor

"Tomas Vala" <tomas.vala@samo.cz> wrote in message
news:7eae571a22f275a932a026d2d25c5951$1@www.eclipse.org...
> Agreed. I am concerned about TOC hiearchy and unavoidable auto-generation
> as well. The situation is pretty hot for us who can't wait until BIRT 2.1
> final is released. However there still exist an option to somehow
> switch-off PDF TOC generation completely in BIRT source-code and build a
> customized version in meantime.
>
Re: Bookmarks automatically generated in PDF [message #129040 is a reply to message #128554] Mon, 13 February 2006 11:53 Go to previous messageGo to next message
Frédéric Ferrant is currently offline Frédéric FerrantFriend
Messages: 75
Registered: July 2009
Member
I found a simple way to remove the automatically generated bookmaks
for grouping in tables...

Edit the group (Groups tab after selecting the table), and set the TOC
Item Expression to null... The bookmark just isn't displayed in the
PDF...
:o)

Have a nice day!
Frédéric

On Fri, 10 Feb 2006 14:15:09 -0700, "floor" <floorflux@hotmail.com>
wrote:

>Thomas,
>
>If you find out how to switch off the PDF TOC in the source, please post it!
>Eventually I'll probably be searching for that, too, and figuring out how to
>build the war myself. Perhaps the code change will be posted as a
>workaround in BugZilla?
>
>--floor
>
>"Tomas Vala" <tomas.vala@samo.cz> wrote in message
>news:7eae571a22f275a932a026d2d25c5951$1@www.eclipse.org...
>> Agreed. I am concerned about TOC hiearchy and unavoidable auto-generation
>> as well. The situation is pretty hot for us who can't wait until BIRT 2.1
>> final is released. However there still exist an option to somehow
>> switch-off PDF TOC generation completely in BIRT source-code and build a
>> customized version in meantime.
>>
>
Re: Bookmarks automatically generated in PDF [message #129385 is a reply to message #129040] Mon, 13 February 2006 17:58 Go to previous messageGo to next message
floor is currently offline floorFriend
Messages: 93
Registered: July 2009
Member
That works like a charm! Thanks for the easy fix!

--floor
Re: Bookmarks automatically generated in PDF [message #134255 is a reply to message #124172] Wed, 22 February 2006 15:13 Go to previous messageGo to next message
Frédéric Ferrant is currently offline Frédéric FerrantFriend
Messages: 75
Registered: July 2009
Member
Diana, it seems like you will learn something...
It is possible to localize a TOC entry. Just use the following as
expression:

reportContext.getMessage("your.toc.entry.key");

Have a nice day.

>I don't know the answer to the first question. My guess is that you cannot
>localize TOC values. I suggest you submit an enhancement if you want this
>functionality.
Re: Bookmarks automatically generated in PDF [message #873112 is a reply to message #129040] Thu, 17 May 2012 14:08 Go to previous messageGo to next message
ing omini is currently offline ing ominiFriend
Messages: 26
Registered: March 2012
Junior Member
Hi,
I think PDF bookmarks are very useful, but I would like to keep only the ones really important, and to prevent the automatic creation of the others.

So I tried to apply this workaround (my version is 2.3.2) but unsuccessfully...
In fact, the PDF bookmark has an empty label but still exists!

Is there any way to remove it completely?

Thanks
Re: Bookmarks automatically generated in PDF [message #1271201 is a reply to message #873112] Fri, 14 March 2014 13:43 Go to previous message
ing omini is currently offline ing ominiFriend
Messages: 26
Registered: March 2012
Junior Member
>> Unfortunately, you can't delete the value
>> specified here so the TOC always displays them

Actually after some time I discovered that inside the "group" edit page, you can also leave empty the TOC entry, and this will result in showing no TOC (i.e. no PDF bookmark) entry at all.
On the contrary if you specify "" (black string) as value, the TOC entry will be shown, even if blank.

Hope this can help someone....
Previous Topic:how to change birt image tag
Next Topic:Test topic - bug 430302
Goto Forum:
  


Current Time: Fri Apr 19 23:25:17 GMT 2024

Powered by FUDForum. Page generated in 0.04804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top