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

Allow programing constructs in PDF export stylesheet

    XMLWordPrintable

Details

    • 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.

      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: