Applying a stylesheet to restyle normal text on PDF export has no effect

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Issue Summary

      Applying a custom stylesheet to restyle the "Normal Text" (e.g., changing the font via font-family on the body selector) during a PDF export has no effect — the font does not update in the exported PDF.

      This issue persists even when following the guidance provided in the official documentation:
      https://confluence.atlassian.com/confcloud/files/724764825/724764826/1/1427771626612/confluencedefaultpdf.css

      Steps to Reproduce

      1. Navigate to Space Settings → Look and Feel → PDF Stylesheet
      2. Apply a stylesheet to modify:
        body {
            margin: 0;
            padding: 0;
            font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        }
        
      3. Export any page in the space as a PDF.

      Expected Results

      The exported PDF should reflect the custom font (e.g., Arial) applied in the custom stylesheet, replacing the default font used for normal body text.

      Actual Results

      The exported PDF continues to use the default font. The custom font specified in the stylesheet is not applied.

      The below exception is thrown in the xxxxxxx.log file:

      ...
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Eduardo P
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: