Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
pptxtemplater
Advanced tools
The pptxtemplater modifies PowerPoint template and provided data before docxtemplater generates the final version of the document.
This module can be used only in combination with docxtemplater.
Use npm install to get the module
npm install docxtemplater --save
npm install pptxtemplater --save
In your code use the pptxtemplater as a module:
let pptxTemplaterModule = require('pptxtemplater');
let doc = new this.Docxtemplater(content);
doc.attachModule(pptxTemplaterModule);
There are two new features added to the standard functionality of docxtemplater:
You can now split one long table into multiple slides with the smaller number of table rows. To do so, you have to provide maximal number of rows in your template that should be shown on one slide.
{#array;max_rows:10}{your_data}{/array}
If you have a slide which should be duplicated dynamically depending on provided data you can use "multiplier" tag: $
. Each slide, containing this tag will be as many times duplicated as many entries are stored in the array with the same name.
If there are no data for this tag, this slide will be deleted.
{$data_to_show_on_multiple_slides}
Here is an example:
Template
Output
For data
{
"DATA_TO_SHOW_ON_MULTIPLE_SLIDES": [{
"COUNTRY": "Germany",
"REVENUE_PER_REGION": [{
"Region": "Berlin",
"ZIP": "55014",
"Revenue": "€93896.94"
}, {
"Region": "Saxony-Anhalt",
"ZIP": "30652",
"Revenue": "€51759.11"
}, {
"Region": "HH",
"ZIP": "05652",
"Revenue": "€51355.41"
}]
},{
"COUNTRY": "Austria",
"REVENUE_PER_REGION": [{
"Region": "Bgl",
"ZIP": "8571",
"Revenue": "€77899.04"
},
{
"Region": "Vienna",
"ZIP": "4403",
"Revenue": "€77276.25"
},
{
"Region": "Vienna",
"ZIP": "9122",
"Revenue": "€48795.89"
}]
}
]
}
Contributions are greatly appreciated. See CONTRIBUTING for details
Feel free to open new issues for feature requests, bugs or general feedback on the GitHub issues page of this project.
This project is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
FAQs
.pptx generator Module for docxtemplater v1.0
We found that pptxtemplater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.