CSS-based PDF - Cannot put page breaks 1st level titles and toc
Posted: Tue Jun 18, 2019 12:01 pm
Hi,
I have Oxygen XML editor version 20.1, build 2018061313.
I’m using pdf transformation scenario based on HTML5 and CSS.
I am struggling with page breaks… I cannot manage to remove page breaks before the 1st level titles and after the toc.
In my customization file, I’ve tried:
Thanks
I have Oxygen XML editor version 20.1, build 2018061313.
I’m using pdf transformation scenario based on HTML5 and CSS.
I am struggling with page breaks… I cannot manage to remove page breaks before the 1st level titles and after the toc.
In my customization file, I’ve tried:
Code: Select all
*[class ~= "topic/title"] {
page-break-before: avoid;
}
*[class ~= "topic/title1"] {
page-break-before: avoid;
}
h1 {
page-break-before: avoid;
}
@media print {
*[class ~= "map/topicref"] {
page-break-after: avoid;
page-break-inside: avoid;
}
}