Hi,
When I export my space to PDF in Confluence Cloud, my images do not always fit on the same page as the content before them, and so are exported onto the following page as the first item.
I want the paragraph immediately before the image to always be on the same page as the image.
I've tried to set this up in the PDF Stylesheet, but to no avail.
I have tried the following (both with and without `!important`):
.confluence-embedded-file-wrapper {
page-break-before: avoid !important;
}
and
.confluence-embedded-image {
page-break-before: avoid !important;
}
However, neither work.
Is this not supported? Or am I doing something wrong?
Any guidance is much appreciated.
Cheers,
Tom
Hello there Tom!
Using only CSS styling I believe that this is not achievable. However, we can manually insert a Page Break by using the following User Macro:
## @noparams
<div style="page-break-before:always;"></div>
To create a user macro, we can do the following:
- Click the Cog Icon at the top right cornet
- Select General Configuration
- Search for User Macros in the left side menu
- Click to Create a User Macro
- Under Macro Name type page-break
- Under Visibility select "Visible to all users in the Macro Browser"
- Under Macro Title type Pagebreak
- You can leave Description, Categories, Icon URL, Documentation URL all as is
- Under Macro Body Processing select No macro body
- Under the Template text box, paste the code in the excerpt above
- Save
After we create this macro, all we need to do is insert it before the paragraph that precedes the image and it should appear in the same page as the image.
Let us hear from you Tom. Looking forward to your reply!
I was under the impression you couldn't create your own macros in Confluence Cloud. I can't see a cog icon in the top right-hand corner. The cog icon (Settings) in the left-hand sidebar does have a General Configuration option, but this has no option for User Macros.
If you could let me know exactly how to find this page, that would be helpful, although it sounds like a lot of effort to set the macro in the middle of an ordered list for several images...
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there, thanks for keeping the thread moving.
You are correct, Tom. User macros are only available for Confluence server.
According to our documentation, this is not possible in Confluence Cloud:
Here we can have a better look at the differences between Cloud and Server:
Looking through our reports, I could find this:
This report points directly to the feature needed in your case. You can vote and watch this report. Votes increase the report visibility and watching keeps you up to date.
Let us hear from you, Tom!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Created: 19-Jul-2012 3h49 PM
You'll forgive me for not believing that Confluence have any inclination to add this feature, and that as for watching it, I might as well watch paint dry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and.... the paint is still drying.
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.