Upload files to "pdf"
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer-core');
|
||||||
const buildHtml = require('./template');
|
const buildHtml = require('./template');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the violation document HTML via Puppeteer and returns a PDF buffer.
|
* Renders the violation document HTML via Puppeteer and returns a PDF buffer.
|
||||||
|
* Uses the system Chromium installed in the Alpine image (no separate download).
|
||||||
* @param {object} violation - Row from violations JOIN employees
|
* @param {object} violation - Row from violations JOIN employees
|
||||||
* @param {object} score - Row from active_cpas_scores
|
* @param {object} score - Row from active_cpas_scores
|
||||||
* @returns {Buffer}
|
* @returns {Buffer}
|
||||||
|
|||||||
Reference in New Issue
Block a user