Hello,
I create PDF versions of my Confluence pages.
Most of these pages look the same, but some pages have small variations.
To achieve this, I combine [Space Tools > PDF Stylesheet] and the CSS macro.
The general look is defined in the PDF Stylesheet. For variations I add the CSS macro to pages and overwrite the settings from the PDF Stylesheet.
Example:
My documents normally have numbered headlines. These are defined in the PDF Stylesheet.
Some pages I want without numbered headlines, so I add the CSS macro to these pages with
h1:before, h2:before { content: ""; }
This used to work until our last update (from a very old 3.x to 6.13.23 now), but not anymore.
If I add the CSS macro now to pages, the settings do show on the Confluence (html) page but do not have any effect on the PDF export although I have set the media setting to "print" or "all".
So I am wondering: Is the CSS macro simply not working anymore?
I've not been able to find any documentation about this CSS macro, so maybe it's no longer supported, or doing anything.
I would do a test to see if it still works.
Add something like this in the CSS macro ands see if the styles have changed:
h1,h2,h3 {
color: hotpink;
}
If you see no difference, then the CSS macro is not working.
You could try a user macro on the pages where you don't want numbering. Something like this should work:
## Macro title: No Numbered Heading
## Macro has a body: No
## Output: HTML
##
## Developed by: David @ David Simpson Apps
## Date created: 2021-09-22
## Installed by: Your Name
##
## @noparams
<style>
h1:before,
h2:before {
content: "";
}
</style>
Don't you find it at "Other macros", or try entering "{css", in my case it will autocomplete it and create the macro.
The documentation mentioned in the macro is this:
https://docs.adaptavist.com/cfm4cs/latest/content-formatting-macros/css-style-sheet
So, I think it still exists. It also does something, just not what I want it to do and what it used to do before ;-)
As explained, I can use it to style the wiki pages.
But if I export these pages to PDF, the styling is gone.
User macros are no option for me, unfortunately as I don't have the rights to create them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, its bundled in Adaptavist's Content Formatting Macros.
Make sure that the Media parameter is set to all. Failing that ask Adaptavist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.