Uploaded image for project: 'Technical Committee Administration'
  1. Technical Committee Administration
  2. TCADMIN-4407

Investigate using Puppeteer to generate PDF files from HTML

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:

      Proj admin

      Description

      Our current tool for generating PDF from HTML has several major drawbacks.

      Puppeteer controlling headless Chrome is a better process, according to several sources.

      This will apparently involve installing software on a Linux system.

      Background info:

      https://github.com/puppeteer/puppeteer

      https://developer.chrome.com/articles/new-headless/

      Here’s a minimal command-line example of using Headless mode to create a PDF file of a given URL:
      chrome --headless --print-to-pdf https://developer.chrome.com/

      PDF options: https://pptr.dev/api/puppeteer.pdfoptions
      (control header and footer)

      Another possible option is using Doppio, a Saas provider. (https://doppio.sh/)

        Attachments

          Activity

            People

            • Assignee:
              paul.knight1 Paul Knight
              Reporter:
              paul.knight1 Paul Knight
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: