Page 1 of 1

How to suppress related links in PDF output only

Posted: Fri Dec 18, 2015 2:48 pm
by DitaNewbie
Hi,

How to suppress "related links" (Parent Child, Next, Previous) in PDF2 output while keeping Maps @collection-type="sequence". The reason I haveto keep this attribute in map is to have "related links" in Xhtml but not in PDF output.

I tried following ant values but does not work, it still appear in PDF.

args.rellinks="none"
args.fo.include.rellinks="none"

DITA-OT 1.8


Any idea?

Re: How to suppress related links in PDF output only

Posted: Fri Dec 18, 2015 5:59 pm
by radu_pisoi
Hi,

Did you refer to the links that appear at the start of each chapter? They can be hidden by specifying the args.chapter.layout=BASIC parameter.

Re: How to suppress related links in PDF output only

Posted: Sat Dec 19, 2015 1:56 am
by DitaNewbie
No, I mean if you set collection-type=sequence as attribute of map, you will see end of each topic there will be links to 'Previous Topic' and 'Next Topic' printed in PDF.

Re: How to suppress related links in PDF output only

Posted: Mon Dec 21, 2015 3:52 pm
by radu_pisoi
Hi,

This seems to be an issue in the DITA-OT PDF plugin. The links to the next and previous topics are generated regardless of the 'args.rellinks' parameter's value.

An workaround for this problem is to remove the collection-type attribute from the map element, but you have to set it to all child topics for the HTML output.