ci: use Gitea API for releases #2
@@ -283,7 +283,13 @@
|
||||
if (header.semester) center(String(header.semester).toUpperCase(), 9, font, 13.76);
|
||||
const dateRange = header.dateRange || deriveDateRange(header.semester);
|
||||
if (dateRange) center(dateRange, 9, font, 11.75);
|
||||
if (header.dateEnrolled) left('Date Enrolled: ' + header.dateEnrolled, 8, italic, margin, 14.53);
|
||||
// Always reserve the Date Enrolled line's vertical space (so the layout
|
||||
// stays aligned with the reference) even though we never have the value.
|
||||
if (header.dateEnrolled) {
|
||||
left('Date Enrolled: ' + header.dateEnrolled, 8, italic, margin, 14.53);
|
||||
} else {
|
||||
y -= 14.53; // keep the same gap, drawing nothing
|
||||
}
|
||||
|
||||
// Student info row, laid out in fixed zones across the page (matching the
|
||||
// reference): ID (bold) left, name at ~100, program at ~338, and
|
||||
@@ -466,7 +472,7 @@
|
||||
y -= 12;
|
||||
}
|
||||
hline(margin, margin + contentWidth, y);
|
||||
y -= 12;
|
||||
y -= 10.1;
|
||||
const printedBy = 'Printed by: ' + (header.studentId || '') + ' on ' + new Date().toLocaleDateString();
|
||||
const pw = font.widthOfTextAtSize(printedBy, 8);
|
||||
page.drawText(printedBy, { x: margin + contentWidth - pw, y, size: 8, font, color: black });
|
||||
|
||||
Reference in New Issue
Block a user