html-pdf-chrome
HTML to PDF or image (jpeg, png, webp) converter via Chrome/Chromium
...By default, pages are saved as a PDF. To save as a screenshot instead, supply screenshotOptions. You can optionally provide an HTML template for a custom header and/or footer. There are a few CompletionTrigger types that wait for something to occur before triggering PDF printing.