I know how to modify the pdf stylesheet to show a header for all pdf exports in a confluence space.
for some documents in the space I'd like a header and for most of the other pages I don't want a header.
is it possible to insert CSS into the wiki page itself so the pdf export will use it ?
i.e can I put this directly into the wiki somehow so the pdf export will use it?
Have a look at Content Exporter for Confluence. You can change the header and footer for each export - no stylesheet change is necessary.
https://metainf.atlassian.net/wiki/spaces/CEX/pages/70432009/Headers+and+footers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Allen,
PDF customization only applies to space exports (not single page exports via Tools > Export to PDF, there is no way to style these exports)
You can try to insert the CSS into a single page using HTML Macro (if your administrator has enabled it), but I do not believe that this will be applied to the PDF export in the end.
It's possible that printing the page to PDF via your browser *may* retain some of your formatting, but I haven't personally tested this myself.
Regards,
Shannon
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.