?
This commit is contained in:
parent
a870a7119f
commit
ede4b8593d
@ -23,12 +23,12 @@ module.exports = {
|
|||||||
credentials(username, studentId) {
|
credentials(username, studentId) {
|
||||||
// Create the output text
|
// Create the output text
|
||||||
const infoArray = [
|
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: '' },
|
||||||
{ font: 'public/Outfit-Regular.ttf', text: 'Email:' },
|
{ 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/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: '' },
|
||||||
{ font: 'public/Outfit-Regular.ttf', text: 'Note: the MyKV Portal uses your username to sign in, not email.' },
|
{ 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();
|
doc.moveDown();
|
||||||
|
|
||||||
// Write the text from infoString
|
// 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) {
|
for (row of infoArray) {
|
||||||
doc.moveDown();
|
doc.moveDown();
|
||||||
doc.font(row.font).text(row.text, {
|
doc.font(row.font).text(row.text, {
|
||||||
|
Loading…
Reference in New Issue
Block a user