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

Allow PDF Export TOC to be replicated via PDF Stylesheet

      When exporting a space via PDF, applying a custom style-sheet only allows you to create a table-of-contents style numbering for contents within a page.

      When the same stylesheet is applied to the page titles and their hierarchy within a space, the sub-level entries are reset to zero:

      PDF Export example:

      Source Space example:

      Custom style-sheet:

      body {
              counter-reset: h2counter 0;
          }
          h1 {
              counter-reset: h2counter 0;
          }
      
          h2:before {
              content: counter(h2counter) ".\0000a0\0000a0";
              counter-increment: h2counter;
          }
          h2 {
              counter-reset: h3counter 0;
         }
      
          h3:before {
              content: counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
              counter-increment: h3counter;
          }
          h3 {
              counter-reset: h4counter 0;
          }
      
         h4:before {  
             content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) ".\0000a0\0000a0";  
             counter-increment: h4counter; 
         }
         h4 {
             counter-reset: h5counter 0; 
         }
        
         h5:before {  
             content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) ".\0000a0\0000a0";  
             counter-increment: h5counter; 
      }

      The expectation is ToC styling should be available to style-sheet customisation within Confluence.

        1. CE-090514-1138-28.pdf
          4 kB
          Paul Greig
        2. css_source_example.jpg
          219 kB
          Paul Greig
        3. pdf_export_example.jpg
          130 kB
          Paul Greig

            [CONFCLOUD-54336] Allow PDF Export TOC to be replicated via PDF Stylesheet

            Sunny Xu (Inactive) made changes -
            Component/s Original: Page - Import [ 61306 ]
            Sunny Xu (Inactive) made changes -
            Component/s Original: Page - Export / Import [ 46319 ]
            Sunny Xu (Inactive) made changes -
            Component/s New: Page - Import [ 61306 ]
            Sunny Xu (Inactive) made changes -
            Component/s New: Page - Export [ 61305 ]
            Sunny Xu (Inactive) made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]

            Hi everyone,

            Thank you for previously raising this bug and bringing it to our attention.

            Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Confluence users.

            As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know.

            Thank you again for providing valuable feedback to our team!

            Sunny Xu (Inactive) added a comment - Hi everyone, Thank you for previously raising this bug and bringing it to our attention. Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Confluence users. As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know. Thank you again for providing valuable feedback to our team!
            Sunny Xu (Inactive) made changes -
            Labels Original: affects-cloud pdf-generation New: affects-cloud pdf-generation stale-bulk-close

            Looks like the bug is not yet fixed... after more than 5 years. I need it for my export very urgent! Please fix this bug. Thanks in advance.

            Christina Schmaderer added a comment - Looks like the bug is not yet fixed... after more than 5 years. I need it for my export very urgent! Please fix this bug. Thanks in advance.
            Bugfix Automation Bot made changes -
            Support reference count Original: 1 New: 2
            Bugfix Automation Bot made changes -
            Support reference count Original: 2 New: 1

              Unassigned Unassigned
              pgreig Paul Greig
              Affected customers:
              24 This affects my team
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: