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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

2 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?

@HuseinA 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
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

323 views 23 8
Join discussion

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