Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Exporting Page as PDF and CSS

When I export my page as PDF - in some scenario, it results into multi-page PDFs.

I have used notes to add a page count (and Page of Page).

What I also want to do is - add Title of the page in the page header or footer - so that when these are printed, each page can be connected. 

I have tried using content: running header - but that doesn't seem to be working. Can this be done?

Is there a repository that I can refer to what can be accessed and added to PDF using CSS?

 

2 answers

1 accepted

4 votes
Answer accepted

Hello there @Chirag Sanghavi !

If you need to have the page title in the PDF header when exporting a single page that results in multiple PDF pages, do this:

  1. Go into "Space Settings"
  2. Select the "Look and Feel" tab
  3. Select "PDF Stylesheet"
  4. Copy this:
    @page {
    @top-center {
    content: element(runningheader);
    }
    }
    .pagetitle h1 {
    position: running(runningheader);
    }
  5. Click "Edit" in the "PDF Stylesheet" tab
  6. Paste the code you copied
  7. Save the changes
  8. Export your page

This will display the page title in all PDF pages after export.

Let us hear from you!

 

 

 

Edit:

Documentation on PDF exports customisation:

Customize exports to PDF

Advanced PDF export customizations

Confluence Default PDF CSS 

 

 

Thank you for your reply. 

Yes - that did work ; but it seems to "steal" the title. 

Here is the before and after image with this change.

Is it possible to keep title in both places? at center of the header as well as where it was originally? 

e.g. keep title as H1 where it was - as well as duplicate it in center of the header.

image.png

Hi @Chirag Sanghavi , did you have the opportunity to use a Marketplace app to generate your PDF exports?

If so, we (K15t) develop Scroll PDF Exporter which would allow you to add static content such as a Title page or Table of Contents and also define the formatting for the page header or footer for your exports. You can learn more here.

Cheers, Thomas (K15t)

Thanks - I am looking more for standard functionality currently. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

258 views 5 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you