Allow for it to work with all xml files under word/
This commit is contained in:
@ -36,6 +36,16 @@ patchDocument(fs.readFileSync("demo/assets/simple-template.docx"), {
|
||||
children: [new Paragraph("Lorem ipsum paragraph"), new Paragraph("Another paragraph")],
|
||||
text: "{{ paragraph_replace }}",
|
||||
},
|
||||
{
|
||||
type: PatchType.PARAGRAPH,
|
||||
children: [new TextRun("Delightful Header")],
|
||||
text: "{{ header_adjective }}",
|
||||
},
|
||||
{
|
||||
type: PatchType.PARAGRAPH,
|
||||
children: [new TextRun("replaced just as well")],
|
||||
text: "{{ footer_text }}",
|
||||
},
|
||||
{
|
||||
type: PatchType.DOCUMENT,
|
||||
children: [
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user