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

JavaScript Code Should be Rendered in PDF Exports

    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.

      Problem Definition

      JavaScript or dynamic customizations are not rendered in PDF Exports. This is probably a limitation of the PDF box library, where only the static HTML and CSS code is rendered in exported PDFs.

      Suggested Solution

      Confluence could execute any dynamic code before the PDF is exported.

      Why this is important

      This would be useful for customers that want to add the current date or any other dynamic content in exported documents.

      Workaround

      Since only HTML code is rendered, the workaround is to hardcode the date which could be dynamically set by a JavaScript function.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bandreeti Bernardo Andreeti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: