Forums

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

PDF Export Stylesheet

epohl
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 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

2 votes
Answer accepted
HuseinA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2011
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?

Laura Schneider
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2019

@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!

2 votes
MS June 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.

1 vote
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 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
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events