diff options
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/main.js b/src/main.js index cedd21d..5b326d7 100644 --- a/src/main.js +++ b/src/main.js @@ -17,7 +17,15 @@ date = date.toLocaleDateString("de-DE", { day: 'numeric', }); -let options = { +const ctage = { + "Mo": [], + "Di": [], + "Mi": [], + "Do": [], + "Fr": [] +} + +const options = { format: 'A4', landscape: true, margin: { @@ -119,14 +127,6 @@ function bufferUp(tage) { return tage; } -const ctage = { - "Mo": [], - "Di": [], - "Mi": [], - "Do": [], - "Fr": [] -} - function main() { let res = ""; @@ -207,8 +207,7 @@ ${v.style} ${hinweise} `; -fs.writeFileSync("test.html", html) - html_to_pdf.generatePdf({content: html}, options).then(pdfBuffer => { + // fs.writeFileSync("test.html", html) fs.writeFileSync(v.filename, pdfBuffer); }); |