Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-22489

Allow programing constructs in PDF export stylesheet

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

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

      We can use following css style to separate pages based on page title.

      div.pagetitle {
        page-break-before:always;
      }
      

      This separates all the Confluence pages in the exported PDF with a pagebreak i.e. every Confluence page starts on a new PDF page. But if I have a hierarchy of pages; like this:

      Home
      |
      +
      |
      +--A
      |  |
      |  +--A1
      |  |  |
      |  |  +--A11
      |  |
      |  +--A2
      |  B
      |  |
      |  +--B1
      

      then I expect the PDF to come out like a Book. Page 'A' & 'B' being the chapter starts. A1, A11, B1 etc. are headings/subheadings inside a chapter.

      I propose that something like this should be allowed in the PDF export style:

      #if($page.parent.homePage)
      div.pagetitle {
        page-break-before:always;
      }
      #end
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7bdd864bd9e0 Pankaj Jangid
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: