Unable to avoid page-breaks
Hi!
I'm struggling with avoiding page breaks, I know I've managed this with other templates, but this time around I can't seem to get it to work and I don't understand what the problem is. I've tried targeting everything (actually, I literally did target everything) but still it doesn't work...
Here's the css for avoiding page breaks:
*,
.section,
.section-1,
.page-internal-section,
div,
.wikicontent div.admonition-info.admonition-icon,
.wikicontent div.admonition-info div.title,
.wikicontent div.admonition-warning div.title,
h2, .heading, .section-heading {
page-break-before: avoid;
page-break-after: avoid;
}
As I said, I've literally targeted everything and still I get pagebreaks before every h2 element in the document, in some cases even completely empty pages.
I don't understand why this is happening and it's very frustrating. Please, any help would be greatly apreciated.
Best regards,
- Alexander
-
Hi Alexander,
Thanks for getting in touch. To further analyze the described problem, it would be great if you could send over your template to support@k15t.com, as well as a XML export of sample pages showing the problem and information about which version of Confluence and Scroll PDF Exporter you're using.
We'll then further investigate and will come back to you as soon as possible.
How to export a PDF template is described on the following page in our documentation: http://www.k15t.com/display/PDF/Downloading+a+Template
To export the content of single Confluence page(s), please follow these instructions: https://help.k15t.com/creating-a-xml-export-of-a-single-page-111903666.html.Best,
Nils -
Thank you Nils. I actually managed to solve it by copying this snippet of code:
div.section-1 {
page-break-before: auto;
}I don't remember where I found it, it should be easily available cause I reckon most people who are customizing their pdf exporter wants to control the page breaks.
Best regards,
- Alexander
Please sign in to leave a comment.
Comments
2 comments