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

epohl Jul 12, 2011

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

0 votes
Answer 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?

1 vote
Mary-Jane Smyth Jun 20, 2012


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.

0 votes
Steffen Heller Apr 22, 2012

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,541 views 8 19
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