Has anyone been able to fix this issue via CSS? The comments suggest the following, but it's not working:
.confluence-information-macro { page-break-inside: avoid !important;
}
This one works, but when I use it, it inserts page breaks in too many places:
@media print {
div {
page-break-inside: avoid;
}
}
Macros don't break if a single page is exported, but some of them are split into two pages if I export the whole space.
Hello Salla,
The feature request you have linked is reported as “Won’t do” due to limited demand. With this said, you do have additional options for PDF exports within the Atlassian Marketplace. While you may be able to resolve this in the short term via CSS for export, that CSS stylesheet may not apply to new versions in the future. With this said, the marketplace does have two products which may assist in resolving your issue. Here are the two add-ons which I discovered (in alphabetical order);
I would suggest you try the above add-ons within a developer instance of Confluence. This will allow you to ensure you no longer have a page break issue.
If neither of these solutions works, please let us know.
Regards,
Stephen Sifers
Hi @Salla
I assume you're running into this behavior: https://k15t.jira.com/browse/EXP-528 ? This is a limitation of the library that's used to create PDFs from the default PDF functionality from within Confluence (Flying Saucer).
As @Stephen Sifers already suggested, you could have a look at our Scroll PDF Exporter, which allows you to create perfectly styled templates without the need to code a single line of CSS, using our graphical template designer (you can check out a short video giving an overview about the app here).
We're also using another library to generate our PDFs, so this issue does not occur when creating an export using our Scroll PDF Exporter.
Please feel free to trial the app using a free 30 day trial license, and get in touch with us via support@k15t.com if you have any product-related questions.
Cheers,
Nils
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.