How to remove PDF bookmarks for task headings

tanja
Posts: 5
Joined: Tue Oct 30, 2018 10:49 am

How to remove PDF bookmarks for task headings

Post by tanja » Tue Oct 29, 2019 3:07 pm

Hello,

I am using Oxygen XML Editor version 21.1 to generate PDF output with the 'DITA Map PDF - based on HTML 5 & CSS' transformation.
I am using the 'args.gen.task.lbl' parameter to display the task headings (Procedure, Results, What to do next, etc.) in my content.
This is working fine.

However, the headings are also shown as bookmarks, which I don't want them to. Is there a way to set up the transformation or the
stylesheet to not generate bookmarks for task heading?

Thanks and best regards
Tanja

julien_lacour
Posts: 102
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to remove PDF bookmarks for task headings

Post by julien_lacour » Wed Oct 30, 2019 2:35 pm

Hello Tanja,

Sure you can disable the bookmarks for task label using the following code in your CSS:

Code: Select all

*[class~="tasklabel"] {
	bookmark-label: none;
	-ah-bookmark-label:none;
}
Regards,
Julien

tanja
Posts: 5
Joined: Tue Oct 30, 2018 10:49 am

Re: How to remove PDF bookmarks for task headings

Post by tanja » Wed Oct 30, 2019 3:48 pm

Hello Julien,

Your solution worked like a charm. Thanks for the quick reply!

Best regards,
Tanja

julien_lacour
Posts: 102
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to remove PDF bookmarks for task headings

Post by julien_lacour » Wed Feb 19, 2020 3:45 pm

Hello Tanja,

This behavior is now set as default in the version 22 of Oxygen (released on February 12, 2020).

Regards,
Julien

Post Reply