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:
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?
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.