Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting single-page PDF exports

Deleted user February 15, 2018

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?

  • @page  
  • {  
  •     @top-center  
  •     {  
  •         content: "HEADER TEXT";   
  •         font-size: 12pt;  
  •     }  
  • }

 

 

3 answers

0 votes
Deleted user February 19, 2018

thanks for the tip.  I'll ask about installing the trial version.

0 votes
GG
Contributor
February 19, 2018

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

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Hello Allen,

Per Customize Exports to PDF:

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events