Compare commits

..

1 Commits

2 changed files with 145 additions and 520 deletions

View File

@@ -30,12 +30,18 @@ async function generatePdf(violation, score) {
format: 'Letter', format: 'Letter',
printBackground: true, printBackground: true,
margin: { margin: {
top: '0.35in', top: '0.6in',
bottom: '0.35in', bottom: '0.7in',
left: '0.4in', left: '0.75in',
right: '0.4in', right: '0.75in',
}, },
displayHeaderFooter: false, displayHeaderFooter: true,
headerTemplate: '<div></div>',
footerTemplate: `
<div style="font-size:9px; color:#888; width:100%; text-align:center; padding:0 0.75in;">
CONFIDENTIAL — MPM Internal HR Document &nbsp;|&nbsp;
Page <span class="pageNumber"></span> of <span class="totalPages"></span>
</div>`,
}); });
return pdf; return pdf;

File diff suppressed because one or more lines are too long