Default confluence pdf export style sheet
Asked by Brett Evans:

I am trying to create a style sheet for pdf export to match our corporate styles.

To this end it would be useful to see the default style sheet applied on confluence cloud so I know what to override.

I am presuming such a thing exists and is applied in some sort of order?

1. Page CSS
2. Server PDF CSS
3. Custom PDF CSS


Answers:
author: Rob Woodgate
body: Hi Brett,

The default Confluence CSS stylesheet for PDF export can downloaded from a link on [this page](https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html#CustomizeExportstoPDF-CustomizingthePDFStylesheet) (server) or [this page](https://confluence.atlassian.com/confcloud/customize-exports-to-pdf-724764825.html#CustomizeExportstoPDF-CustomizingthePDFStylesheet) (cloud).

Those pages are a goldmine of useful information on the subject of CSS for PDF exports, as is the [Advanced page](https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html) (server) and the [Advanced page](https://confluence.atlassian.com/confcloud/advanced-pdf-export-customizations-724764827.html) (cloud).

(You're on cloud, but I've included the server pages as well for anyone else who finds this question later on.)

comments: author: Brett Evans
body: This is awesome, not sure how I missed that!

Sadly page size information seems absent from the default CSS :/

I suspect this lives in yet another CSS file as reading the docs page size is set dependant on the region you are hosted in for cloud.

If i set the page size on the page it doesn't change the page size in the export, if I put it in advanced PDF export css it does change the page size.


author: Rob Woodgate
body: Hi Brett,

There is a [whole section](https://confluence.atlassian.com/confcloud/customize-exports-to-pdf-724764825.html#CustomizeExportstoPDF-PageSize) on page sizing on the page I linked to. That should cover what you need, I think?

As for the *default* page sizing, the value is dynamically decided based on the locale, which would (probably) mean that it's calculated by JavaScript, but I can't say for certain.


author: LSE
body: The mentioned "default Confluence CSS stylesheet for PDF export" is nowhere to be found on the page [Customize Exports to PDF](https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html) mentioned by [@Rob Woodgate](/t5/user/viewprofilepage/user-id/781603).

It has been five years since this reply was posted, so I guess the site was reworked and the link removed.

But the link can still be found on the web archive. Here is the direct link to the default "Export to PDF default CSS": <https://confluence.atlassian.com/doc/files/190480945/191430666/58/1484180090521/confluencedefaultpdf.css> (Mirror: <https://pastebin.com/LZXqHxKi>).

Best regards, LSE

comments: author: Andrew Pascarella
body: Was looking for this, thank you. It's missing from the updated pages.


author: Nils Bier _K15t_
body: Hi Brett,

I just wanted to let you know that we've released a new version of our [Scroll PDF Exporter for Cloud](https://marketplace.atlassian.com/plugins/com.k15t.scroll.scroll-pdf/cloud/overview) including a template designer (see our [Help Center](https://help.k15t.com/scroll-pdf-exporter-cloud) for further details about your customization options).

Please feel free to try it out and check if that fits your requirements.

Cheers,  
Nils


Tags: cloud

css

export

pdf