Page 1 of 1

DITA-OT PDF plugin notices

Posted: Mon Apr 25, 2016 10:43 am
by SimonH
I've added a notices section to a DITA bookmap. The notices refers to a concept topic that contains copyright and trademark information. On PDF output I would like the text to be styled in a smaller font-size. However, it gets all the default sizes that any other topic would as expected. I tried putting the font-size in the page definition etc. or font-size="60%" but this is overridden when the conbody and lower elements are output.

What would be a good/easy way to modify the OT to output force the notices in a smaller 6pt font?

-Simon

Re: DITA-OT PDF plugin notices

Posted: Mon Apr 25, 2016 3:40 pm
by radu_pisoi
Hi Simon,

I am affraid that there is no easy way to modify the font size for the DITA 'notices' or topics that are child of the 'notices' topic.

In your case, you need to override some XSLT templates that generate the XSL-FO for the 'notices' topic.

To modify the font size for notices, you should override the 'processTopicNotices' XSLT template and set the 'font-size' property for an 'fo:block'.
The 'processTopicNotices' template is defined in [oXygenInstallDir]/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/xsl/fo/commons.xsl.

However, this customization will not impose the font size for all Notices topic's children. For this, you should override the specific XSLT templates and check the type of parent topic (if it is a 'Notices') and set your custom font size.

Re: DITA-OT PDF plugin notices

Posted: Thu Apr 28, 2016 3:59 pm
by SimonH
Thanks for your response. I hacked something together so it does what I want.

Re: DITA-OT PDF plugin notices

Posted: Wed May 25, 2016 6:45 pm
by Cmarine
SimonH,

Can you post what you figured out? I have a similar issue with notices.

Thanks,

C