Replies: 2 comments
-
|
Hello @jviseur! From what I understand, variable images in DocxTemplater are a paid feature, part of the Image module https://docxtemplater.com/modules/image/. Theoretically you'd need to purchase it and then install it on the N8N instance or Docker image, and then you'd be able to activate that module (see docs), and then the Alternatively, you can install and load any third-party modules that you could, for example, develop yourself, or download from NPM. I don't see explicit instructions for developing custom modules, but there's an example here. This requires writing code. If you find a module that allows inserting images, let me know its name and we can see how to load them, I remember N8N changed the module load system for v2 and now loading modules is slightly more complicated than it used to be. |
Beta Was this translation helpful? Give feedback.
-
|
@jreyesr thank you for the update and your assistance. I discovered that we needed to purchase that specific module. We cannot at present afford to purchase such a module but will do this once we are more financial. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@jreyesr I need to be able to replace a signatory at generation time but having some difficulties achieving that task.
In n8n I have the images as binaries called photo1 and photo2. I inserted {%photo1} in the description of Alt Text but I cannot get it to function
My input code to DocxTemplater is as follows
`
// Member data from upstream
const member = $items("Parameters")[0].json;
// Binaries from other nodes
const templateItems = $items("Get ES Templates");
const autographBinary = $items("Get Autograph")[0].binary.data;
const thumbBinary = $items("Get Thumb Print")[0].binary.data;
// Build one output item per template
return templateItems.map(t => ({
json: {
data: {
...member,
photo1: "photo1",
photo2: "photo2"
},
templateName: member.Template
},
binary: {
template: t.binary.data,
photo1: autographBinary,
photo2: thumbBinary
}
}));
`
Any help is much appreciated
Regards,
John
Beta Was this translation helpful? Give feedback.
All reactions