1
0
Fork 0
mirror of https://github.com/IRS-Public/direct-file.git synced 2025-07-02 16:38:42 +00:00

initial commit

This commit is contained in:
sps-irs 2025-05-29 13:12:11 -04:00 committed by Alexander Petros
parent 2f3ebd6693
commit e0d5c84451
3413 changed files with 794524 additions and 1 deletions

View file

@ -0,0 +1,30 @@
const headerTemplate = `
<style>
section {
margin: 0 auto;
font-family: system-ui;
font-size: 12px;
}
.footer div {
position: absolute;
width: 50%;
bottom: 30px;
}
</style>
<section><div>[[HEADER]]</div></section>
`
const footerTemplate = '<section class="footer"><div style="left: 30px;">[[FOOTER]]</div><div style="text-align: right; right: 30px;"><span class="pageNumber"></span></div></section>';
module.exports = {
headerTemplate: headerTemplate,
footerTemplate: footerTemplate,
pdf_options: {
format: 'letter',
headerTemplate: headerTemplate.replace('[[HEADER]]', ''),
footerTemplate: footerTemplate.replace('[[FOOTER]]', 'Draft/Pre-decisional')
},
// https://github.com/simonhaenisch/md-to-pdf/issues/247
launch_options: {
headless: "new"
}
};