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

Use a more recent version of headless Chrome for PDF export

    XMLWordPrintable

Details

    • Integration
    • Unknown

    Description

      We are currently using this Docker image https://hub.docker.com/r/zenika/alpine-chrome to run headless Chrome on the server-side for PDF export. This image has a couple of problems:

      • it provides an old version of Chrome, 124, versus the current 144 version
        • using a 2-years old Chrome version poses a security threat
        • recent versions of Chrome have added support for:
          • generating PDF outline (bookmarks) XWIKI-23380
          • generating tagged PDFs that are accessible (properly read by a screen reader) XWIKI-19560
        • I haven't checked, but recent versions of Chrome should be faster as well
      • even though the provided Chrome version is old, the image seems to be updated often, by reusing the same tag. Which means that, even if the image version is fixed on our side, the behavior could be different depending on which iteration of the same version was cached locally... See XWIKI-23703 for the surprise I recently had.

      Based on this I think we should look for an alternative. This one https://hub.docker.com/r/femtopixel/google-chrome-headless seems to be a good option.

      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: