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

PDF Export Stylesheet

I need to create a PDF stylesheet for my Confluence site, and am a bit of a CSS dummy. Does anyone have an example they can post of theirs, which includes the following:

  • Title Page with image
  • TOC
  • Footer with page numbers and maybe a graphic

If I have that I think I can manage a basic version.

Also, is it possible to have widow/orphan control in a CSS stylesheet?

3 answers

1 accepted

Most of them is covered in our documentation:

The best starting point is to refer to the default PDF Stylesheet here: confluencedefaultpdf.css. From there you'll get more clues on where to customise which.

Also, is it possible to have widow/orphan control in a CSS stylesheet?

I don't think so. But perhaps you can explain further on what are you trying to achieve here?

@Husein Alatas [ Thanks much for your link to confluencedefaultpdf.css, that is just what I was looking for but not finding anywhere. I think it will solve a bunch of problems for me. Cheers!


I don't know about newer versions but I am using Confluence 3.1.1 and its PDF output is based on the Flying Saucer PDF engine. In 3.1.1, widow and orphan control is not directly supported.

Also, is it possible to have widow/orphan control in a CSS stylesheet?

As far as I know orphans and widows are part of CSS 2.1. Their specifications are explained at
http://www.w3.org/TR/2007/CR-CSS21-20070719/page.html#break-inside

I tried using it myself but couldn't get it to work the way I wanted. So I am still looking for a working example and I can't answer if or to what extent this functionality is implemented in Confluence (=> hints and answers are welcome!).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

What's New in Confluence Cloud – October 2019 Edition

Hey there! When you can pack so much information onto a Confluence page, it can be challenging to whittle down what’s most important. Here are a few of our favorite hacks for finding need-to-know i...

53,415 views 53 134
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