Stylesheet does not apply when exporting a page to PDF

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Editing the PDF Stylesheet and trying to export a single page via Tools > Export to PDF does not apply the stylesheet settings. This issue may not be noted after 6.13.x versions.

As an example, noted in this BUG:   CONF-26230 - Getting issue details... STATUS

The Workaround notes adding the following CSS in Confluence Admin > PDF Stylesheet to edit the vertical vs horizontal.

body, p, li, td, table, tr, .bodytext, .stepfield {
    word-wrap: normal;
}

.wiki-content p {
    word-wrap: normal;
}

Cause

The main issue is that you can customize the Stylesheet, but even so, PDF customization only applies to space exports, not single-page exports, via Tools > Export to PDF.

Workaround

For the workaround, export a single page:

  • Edit your stylesheet
  • Go to:
    • Space Tools
    • Content Tools
    • Export
  • Select 
    • PDF
    • Custom Export
  • Choose only the single page you want exported
  • Export


Last modified on Jan 6, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.