Page 1 of 1

How to apply page break on topic heads

Posted: Fri Apr 12, 2019 10:18 am
by dpksaini89
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.
Image
Image

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

Re: How to apply page break on topic heads

Posted: Mon Apr 15, 2019 1:04 pm
by Costin
Hi,

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"] {
page-break-before:always;
}
Regards,
Costin

Re: How to apply page break on topic heads

Posted: Fri Dec 11, 2020 2:25 pm
by julien_lacour
Hello,

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.

Regards,
Julien