Page 1 of 1
Topic Headings in PDF output
Posted: Tue Jun 07, 2011 4:57 pm
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
Re: Topic Headings in PDF output
Posted: Tue Jun 07, 2011 5:31 pm
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
Re: Topic Headings in PDF output
Posted: Wed Jun 08, 2011 12:13 am
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.
Re: Topic Headings in PDF output
Posted: Wed Jun 08, 2011 2:21 pm
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