fix(pdf): preserve accented names in revised CV and letter headings

This commit is contained in:
cesnimda
2026-10-29 23:38:43 +01:00
parent 38d7133d20
commit 154a9e89f5
13 changed files with 235 additions and 13 deletions
@@ -26,7 +26,9 @@ async function main() {
const rows = [];
try {
for (const fixture of fixtures) {
assert.match(fixture.fixture, /^(?:short-en|medium-nb|long-en|dense-nb)-[a-z-]+$/);
const html = fs.readFileSync(path.join(source, fixture.fixture, 'render.html'));
assert.ok(html.length <= 8 * 1024 * 1024, 'Excessive synthetic HTML');
await page.setContent(copy.exports.previewDocumentHtml(html.toString('utf8'), 297 * 96 / 25.4));
await page.waitForFunction(() => document.documentElement.dataset.cvPreviewReady === 'true');
const measured = await page.evaluate(() => {