How to apply page break on topic heads

Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

How to apply page break on topic heads

Post by dpksaini89 » Fri Apr 12, 2019 10:18 am

Hi Team,

I am using <oXygen/> XML Editor 20.1, build 2018061313 and publishing pdf using WYSIWYG using Dita and Css.

The 'page-break-before' in outputclass is not working for topicheads in ditamap.

Please help.
Otherwise the last resort is to use ditatopics without content inspite of topic heads.

Posts: 734
Joined: Mon Dec 05, 2011 6:04 pm

Re: How to apply page break on topic heads

Post by Costin » Mon Apr 15, 2019 1:04 pm


Thank you for reporting this behavior!
I confirm that the page-break attributes do not work for <topichead> elements.
I have just logged this issue in our internal issue-tracking-system to be analyzed by the development team and will update this thread once we reach to a conclusion.

L.E: After a first look at the issue, it seems this is triggered by the fact that the outputclass attribute is not copied from the topicref to the corresponding topic.

As a workaround, until we will fix this in a future version, you could try using the below rule in a customization CSS:

Code: Select all

*[class~="pdf2-d/placeholder"] {
Costin Sandoi
oXygen XML Editor and Author Support

Posts: 184
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to apply page break on topic heads

Post by julien_lacour » Fri Dec 11, 2020 2:25 pm


I did the test on Oxygen current version (23.0) with DITA Map PDF - based on HTML5 & CSS and I cannot reproduce the problem: you can set the outputclass="page-break-before" on <topichead> elements.


Post Reply