Allow programing constructs in PDF export stylesheet

XMLWordPrintable

      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
      

            Assignee:
            Unassigned
            Reporter:
            Pankaj Jangid
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: