mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
go go
This commit is contained in:
@@ -19,6 +19,7 @@ const os = require('os');
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const TEMPLATE_PATH = path.join(__dirname, '../templates/certificate.typ');
|
||||
const FONT_PATH = path.join(__dirname, '../templates/fonts/Arimo');
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
@@ -39,6 +40,7 @@ async function generateCertificate({ name, course, date, cert_no, ref_no, instru
|
||||
'compile',
|
||||
TEMPLATE_PATH,
|
||||
outPath,
|
||||
'--font-path', FONT_PATH,
|
||||
'--input', `name=${name}`,
|
||||
'--input', `course=${course}`,
|
||||
'--input', `date=${date}`,
|
||||
|
||||
Reference in New Issue
Block a user