?
This commit is contained in:
parent
a870a7119f
commit
ede4b8593d
@ -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.' },
|
||||
]
|
||||
@ -91,6 +91,10 @@ module.exports = {
|
||||
|
||||
// Write the text from infoString
|
||||
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, {
|
||||
|
Loading…
Reference in New Issue
Block a user