This commit is contained in:
Skylar Grant 2024-09-13 09:21:52 -04:00
parent a870a7119f
commit ede4b8593d
1 changed files with 8 additions and 4 deletions

View File

@ -23,12 +23,12 @@ module.exports = {
credentials(username, studentId) {
// Create the output text
const infoArray = [
{ font: 'public/RobotoMono-Regular.ttf', text: `Username: ${username}` },
{ font: 'Courier-Bold', text: `Username: ${username}` },
{ font: 'public/Outfit-Regular.ttf', text: '' },
{ font: 'public/Outfit-Regular.ttf', text: 'Email:' },
{ font: 'public/RobotoMono-Regular.ttf', text: `${username}@kvcc.me.edu` },
{ font: 'Courier-Bold', text: `${username}@kvcc.me.edu` },
{ font: 'public/Outfit-Regular.ttf', text: '' },
{ font: 'public/RobotoMono-Regular.ttf', text: `Student ID: ${studentId}` },
{ font: 'Courier-Bold', text: `Student ID: ${studentId}` },
{ font: 'public/Outfit-Regular.ttf', text: '' },
{ font: 'public/Outfit-Regular.ttf', text: 'Note: the MyKV Portal uses your username to sign in, not email.' },
]
@ -90,7 +90,11 @@ module.exports = {
doc.moveDown();
// Write the text from infoString
doc.fontSize(12)
doc.fontSize(12)
doc.font('public/Outfit-Regular.ttf').text(infoString, {
align: 'left',
});
for (row of infoArray) {
doc.moveDown();
doc.font(row.font).text(row.text, {