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

Canvas elements are blank in the PDF export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.2-rc-1
    • Fix Version/s: 14.2.1, 14.3-rc-1
    • Component/s: Export - PDF
    • Labels:
      None
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: