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:
parent
2f3ebd6693
commit
e0d5c84451
3413 changed files with 794524 additions and 1 deletions
30
docs/engineering/md_to_pdf/md-to-pdf.config.js
Normal file
30
docs/engineering/md_to_pdf/md-to-pdf.config.js
Normal 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"
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue