You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to repeat pages in a PPTX and I can't find the way.
Here is my current test data :
const fs = require("fs");
const carbone = require("carbone");
// Data to inject
var data = {
evol: {
context: "Evolution TEST",
scenarios: [
{
name: "Scenario 1",
},
{
name: "Scenario 2",
},
],
},
};
// Generate a report using the sample template provided by carbone module
// This LibreOffice template contains "Hello {d.firstname} {d.lastname} !"
// Of course, you can create your own templates!
carbone.render("./templates/template2.pptx", data, function (err, result) {
if (err) {
return console.log(err);
}
// write the result
fs.writeFileSync("result.pptx", result);
});
error
TypeError: Cannot read properties of undefined (reading 'position')
at Object.splitMarkers (/Users/vlebert/carboneio/node_modules/carbone/lib/extracter.js:241:41)
at /Users/vlebert/carboneio/node_modules/carbone/lib/builder.js:43:48
at Object.preprocessMarkers (/Users/vlebert/carboneio/node_modules/carbone/lib/parser.js:353:5)
at /Users/vlebert/carboneio/node_modules/carbone/lib/builder.js:35:16
at /Users/vlebert/carboneio/node_modules/carbone/lib/parser.js:67:7
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
I am trying to repeat pages in a PPTX and I can't find the way.
Here is my current test data :
error
And my template
template2.pptx
Is that kind of repetition possible somehow ?
Environment
Carbone Version: [carbone@3.5.6]
The text was updated successfully, but these errors were encountered: