Open
Description
Environment
- Version of docxtemplater : 3.34.1
- Used docxtemplater-modules : none
- Runner : Node.JS v14
- libreoffice7.3
How to reproduce my problem :
My template is the following : multidoc.zip
Length Date Time Name
--------- ---------- ----- ----
0 2023-02-18 19:18 multidoc/
6356 2023-02-18 18:29 multidoc/input.docx
461 2023-02-18 18:41 multidoc/render.js
71 2022-07-12 08:43 multidoc/nodemon.json
7382 2023-02-18 19:13 multidoc/output-expected.docx
23374 2023-02-18 18:41 multidoc/output.docx
const fs = require('fs')
const Docxtemplater = require('docxtemplater')
const content = fs.readFileSync(__dirname + "/input.docx", "binary")
const PizZip = require('pizzip')
const zip = new PizZip(content)
const doc = new Docxtemplater(zip)
doc.render({
Letters: [null, null] // Two
})
const buf = doc.getZip().generate({type: 'nodebuffer'})
const template = __dirname + '/output.docx'
console.log(`writing ${template}`)
fs.writeFileSync(template, buf)
I would expect it to :
Recognize LibreOffice Manual Page Breaks
- page styles mirror the input.docx
- page number resets mirror the input.docx
- works in a loop