How to remove PDF bookmarks for task headings

Post here questions and problems related to editing and publishing DITA content.
tanja
Posts: 39
Joined: Tue Oct 30, 2018 10:49 am

How to remove PDF bookmarks for task headings

Post by tanja »

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: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to remove PDF bookmarks for task headings

Post by julien_lacour »

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: 39
Joined: Tue Oct 30, 2018 10:49 am

Re: How to remove PDF bookmarks for task headings

Post by tanja »

Hello Julien,

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

Best regards,
Tanja
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to remove PDF bookmarks for task headings

Post by julien_lacour »

Hello Tanja,

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

Regards,
Julien
Post Reply