diff --git a/server/services/documentService/documentService.ts b/server/services/documentService/documentService.ts index 6b15fcf4..9dd7b5d0 100644 --- a/server/services/documentService/documentService.ts +++ b/server/services/documentService/documentService.ts @@ -54,13 +54,36 @@ const generateDocument = async (template: Template, data: any) => { const pdfBuffer = await page.pdf({ printBackground: true, displayHeaderFooter: true, - headerTemplate: '', //TODO move here header from content to repeat on each page + headerTemplate: ` + +
+ +
+ `, footerTemplate: ` -
+ +
`, + `, margin: { - bottom: '30px' + top: '150px', + bottom: '40px' } }); await browser.close(); diff --git a/server/templates/supportDocument/supportDocument.hbs b/server/templates/supportDocument/supportDocument.hbs index 75c32c8f..98ad4250 100644 --- a/server/templates/supportDocument/supportDocument.hbs +++ b/server/templates/supportDocument/supportDocument.hbs @@ -4,42 +4,43 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
+

Prélèvement