This commit is contained in:
2026-08-03 23:34:07 +08:00
parent 573cfb98af
commit 5b9c6bec35
7 changed files with 95 additions and 4 deletions
+2
View File
@@ -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}`,