Compare commits

..

1 Commits

Author SHA1 Message Date
bcf0e3f3d1 fix: reduce PDF margins and remove redundant puppeteer footer 2026-03-06 23:40:49 -06:00

View File

@@ -30,18 +30,12 @@ async function generatePdf(violation, score) {
format: 'Letter',
printBackground: true,
margin: {
top: '0.6in',
bottom: '0.7in',
left: '0.75in',
right: '0.75in',
top: '0.35in',
bottom: '0.35in',
left: '0.4in',
right: '0.4in',
},
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>`,
displayHeaderFooter: false,
});
return pdf;