Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19568

Canvas elements are blank in the PDF export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.2.1, 14.3-rc-1
    • 14.2-rc-1
    • Export - PDF
    • None
    • Medium
    • N/A
    • N/A

    Description

      Macros such as Chart.js Integration are using the HTML Canvas element for drawings. The drawings appear fine in view mode but when the page is exported to PDF (client side) they disappear.

      The canvas elements become blank because they are moved around in the DOM tree by paged.js when it layouts the pages for print. Detaching a canvas element from DOM clears its content so re-attaching it to the DOM leads to a blank canvas.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: