diff --git a/pdf.js b/pdf.js index 733d7a7..2b63291 100644 --- a/pdf.js +++ b/pdf.js @@ -185,8 +185,8 @@ if (header.program) page.drawText(compactProgram(header.program), { x: 338, y, size: 9, font, color: black }); if (yearLevelText) { const w = font.widthOfTextAtSize(yearLevelText, 9); - // Right-aligned to the content edge, nudged left ~12pt (~1rem). - page.drawText(yearLevelText, { x: margin + contentWidth - w - 12, y, size: 9, font, color: black }); + // Right-aligned to the content edge, nudged left ~6pt (half of 1rem). + page.drawText(yearLevelText, { x: margin + contentWidth - w - 6, y, size: 9, font, color: black }); } if (header.studentId || header.fullName || header.program || yearLevelText) y -= 14.5;