Topic Headings in PDF output

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Topic Headings in PDF output

Post by Boreas »

Hello,

I use topic headings in documents that are generated in either a Webhelp or a PDF. The webhelp output is ok. But when I generate as a PDF, the topic heading appears on a single page, looks odd. Is there a way to remove the page break and to change the font and style of it? Would it be possible to keep the page break but to add an image on this page.

Best Regards

Boreas
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Topic Headings in PDF output

Post by Radu »

Hi Boreas,

I tested with Oxygen 12.2 and the bundled DITA OT 1.5.2 + Apache FOP for PDF rendering.
I had a DITA Map with a topic heading having several child topic references and the PDF did not break page after the topic head title.
Do you have any customizations in your DITA-OT?

If you also want to add an image for it why not create a DITA topic with the image reference inside and use a topicref to it instead of the topichead? Maybe this will also remove the first problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Re: Topic Headings in PDF output

Post by Boreas »

Yup plenty on customization.

We added a page break to topic.topic.title in ...\DITA-OT\demo\fo\cfg\fo\attrs\commons-attr.xsl. because we wanted the child topic references to "page break". But by doing so the page break is also applied to the topic heading.
Is there a way to have a page break for the child topic references while the topic heading does not?

Thanks.
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Topic Headings in PDF output

Post by Radu »

Hi,

The attribute set in which you modified the page break is used in the:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl stylesheet in the XSL template:
<xsl:template match="*" mode="processTopicTitle">.

Maybe you can make a fix there instead depending on the @class value of the current topic reference (or topic head in your case).

You can also try to ask this question on the DITA Users List:
http://tech.groups.yahoo.com/group/dita-users/
Maybe they have better approaches.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply