Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-16557

PDF export to cater for better heading formatting

    XMLWordPrintable

Details

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      To demonstrate this limitation, please refer to the following steps:

      1. Create a space
      2. In the "Home" page, add the following content:
        h1. Heading A
        h2. Heading B
        h1. Heading C
        
      3. Create a child page "Child" with this content:
        h1. Heading D
        h2. Heading E
        h1. Heading F
        
      4. Export the space to PDF

      In the resultant PDF:

      • "Home" is displayed as the prime heading (h1)
      • "Heading A" is displayed as h2, "Heading B" is displayed as h3, and so on
      • However, "Child" (the child page title) is displayed as h2 (not h1), "Heading D" is displayed as h3 and so on <-- this is the limitation

      In other words, you can see that on the first page the headings are increased by one:

      Wiki PDF
      Page Title h1
      "h1." h2
      "h2." h3
      ... ...

      From the second (child page) on, headings are increased by two:

      Wiki PDF
      Page Title h2
      "h1." h3
      "h2." h4
      ... ...

      Because of this reason it's not possible to do a senseful page numbering with css counters. If the headings would be shifted on all pages in the same way, this would be no problem.

      A suggestion would be that Page Titles always get h1 in the PDF export and the content headings are always only shifted by 1. Additionally (to keep the possibility to define something like a title page with the very first page title), the very first page title could get something like <h1 class="very_first_page_title">.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amohdaris Azwandi Mohd Aris (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: