You can download the license file for docxtemplater PRO, docxtemplater ENTREPRISE or a single docxtemplater Module [here](https://docxtemplater.com/PRO-LICENSE.
Right after your payment (within 5 minutes), you should receive an email with urls that allow you to do
npm install --save <secret-url>
Each of the version of each modules has a unique URL, so that you can point to one specific version so that nothing will break if you did not intend to upgrade.
I do not offer discount codes. The price is the same for everyone.
No. The docxtemplater PRO plan / ENTREPRISE plan / SINGLE MODULE plan / are for a duration of 1 running year at the time of the payment (from 16th August 2017 to 16th August 2018 for example). It allows to run the software in production for that period of time, and gives you access to all updates and support.
It costs 950 euros for one year. It cannot be canceled during the year, only after the end of the period.
If you stop using the modules, you don't have to pay anymore.
Whenever you subscribe to docxtemplater pro, you will get a unique URL that allows you to do npm install <secret-url>
to install each of the modules. If after one year, you do not renew, the url expires and you won't have access to the package anymore.
Here are a few examples of what is possible :
Company Acme buys the PRO module on 16th August 2017 and pays 950 euros. After one year, they decide they don't need the module anymore, and the URL expires on 16th August 2018.
Company Acme buys the PRO module on 16th August 2017 and pays 950 euros. After 9 months they do not need to use the modules anymore. They don't get money back, the subscriptions are for one year.
Company Acme buys the PRO module on 16th August 2017 and pays 950 euros. After one year, they wish to continue using the modules, and pay the renewal at 950 euros per year.
Yes, the license model is suitable for Software as a Service businesses. As long as you are the entity running docxtemplater software, you can use the normal licenses.
You are however not allowed to install the PRO/ENTREPRISE or docxtemplater modules software on-site on your clients servers.
Yes, if you have any issues with docxtemplater (open-source) or one of the modules, I will give you support without additional charges.
To have faster answers, please include the used modules, the template document, your JSON data, and code.
Resellers can buy Docxtemplater modules, the PRO,ENTREPRISE, or PREMIUM docxtemplater version on behalf of their customers. They must provide a distinct email address for each customer and be able to pay via credit card or invoice with no manual process on our part. We will not allow resellers who require annual handholding or manual processing.
As a reseller, you use a different email for each customer of yours, and you are allowed to transfer the access links to your customers. Please then send us an email to tell us who the customer is so that we know whom we should provide support to.
We do not offer discount to resellers.
This is a common requirement for the "appliance" model, where you install you sell software to other companies. The standard license does not allow to redistribute the software. The Appliance license plan costs 4500€ per year for PRO and 10000€ per year for ENTREPRISE version. It allows you to distribute the modules contained in the PRO or ENTREPRISE module as part of your application. You are not allowed to resell the modules as is.
This method of distribution is also sometimes called on premise.
Yes, that is possible, we make the upgrade easy and you won't have to pay twice.
Similarly, it is possible to upgrade from a single module to a plan that contains that module (from single image-module to PRO for example). It is however not possible to switch from one module to the other.
To upgrade, simply pay for the PRO, ENTREPRISE, or PREMIUM Plan and then ask me a partial refund for the modules that are part of then newly upgraded plan.
Lets take an example to make things clear.
The Acme Company buys the PRO module on January 1st 2018 for 950€ for one year. On July 2nd they wish to use the ENTREPRISE module which costs 2450€. In that case, the plan expiration date is extended to finish at July 1st of 2019, and the company will receive a refund via bank transfer of the "unused" days, eg the number of days between July 2nd and December 31. In our example, that would be 182 unused days out of 365, which is almost 50%, so the refund will be of 425€.
In the license terms, it is specified that you cannot exceed the maximum number of Workers authorized at the time of purchase. The ENTREPRISE and PRO plan, as well as the single module plans, each include a limit of max 100 Workers.
By the word "Worker", we mean the number of CPUs that are running docxtemplater-pro or docxtemplater-entreprise software. For example, if you use 4 servers in production that have the pro software installed, and they have 8 CPUs each (by running multiple processes or using nodejs workers ), the quota of used workers will be of 32 out of 100 which is the maximum limit for that license.
Development and testing instances do not count, you can use as many workers as you need on non-production instances.
If you need more than 100 Workers, please contact us (email is in the footer).
When you use docxtemplater client side, Workers are not the number of CPUs, but each user (real life person) that has access to docx generation in your application is counted as 0.1 Worker, which means if you buy the PRO license giving you a limit of 100 Workers, you are allowed to have a maximum of 1000 users with access to the features given by docxtemplater Modules.
Development and testing instances do not count, you can use as many workers as you need on non-production instances.
When using serverless providers (such as AWS Lambda), the worker count is different than when running docxtemplater on a traditional server.
In that case, you are allowed to call the docxtemplater rendering engine up to one thousand (1,000) times per day, ie run 1,000 lambdas per day that will use the docxtemplater modules that you've purchased.
Yes, there is an option to buy a perpetual license, which allows you to install the software on new hosts perpetually.
The pricing for the Entreprise feature set for this model is 12250€ one time. We will in this case also give you support for a duration of 3 years.
The max worker count of 100 Workers still applies.
Yes, you can get a quote for the entreprise license (at 3000€/year) :
You will then have to send approval via a PO or simple email.
We accept payment by wire transfer only if you buy the docxtemplater ENTREPRISE Plan (at 3000€ per year) or if the amount is higher than 1500€ per year.
We accept IBAN (European bank transfers), and if you want to do a bank transfer from outside the EU, you will have to pay any additional fees.
To request a quote for the ENTREPRISE Plan, use following page.
The docxtemplater modules are bought on a yearly basis, no exceptions.
For the support, it includes a response usually in less than a business day to each question regarding :
It does not include development of new features that take over 4 hours of work, or that are not generic enough to be used by other users of docxtemplater.
You can cancel the subscription at any time by simply sending an email to us (see Contact us button at the bottom of this page).
After cancelation, your credit card will no more be charged, and after your subscription period ends, you will no more be allowed to install the docxtemplater modules on any new servers. You will also access to all updates and support
During the two weeks following your purchase, you are allowed to ask for a 100% refund. In that case, you will no longer be allowed to use the software.
To request a refund, send us an email with your account information.
The legal information for the company publishing docxtemplater.com and its modules is :
If you need a contact email, for all purposes (marketing, legal, tech support, …), please use the email shown when you click "contact us" at the bottom of the page.
My bank information details can be found on the invoices that I will be sending you.
docxtemplater core and all docxtemplater paid modules are all written using javascript in a way that they can run both :
After you have bought a license, you will get an email with commands to install each module you have access to.
The modules are installed via npm, you'll have to run :
npm install --save <secret-url>
where secret-url
is a url that will be unique for your account.
The files required to run in the browser are also bundled inside the package.
All modules can be used in the browser (for example, it is possible for the image module, slides module, html module, …), you can use the file present in the build
directory of your module. That is for example, in the case of the html module :
node_modules/docxtemplater-html-module/build/html-module.min.js
All modules have a RSS Feed available at this link :
https://docxtemplater.com/modules/<module>/releases.rss
For example :
All modules are tested with integration tests (using real docx, pptx or xlsx documents), and cannot be published without the tests passing. The tests can be run by running npm test
.
Here is the public github issue tracker.
It is also possible to contact us via email (on the bottom of this page), for questions with undisclosable files, or questions about sales.
This is a limitation of a templating engine. Docxtemplater is not a rendering engine. Having a proper docx rendering engine running in NodeJS would require an enormous amount of work (basically the same amount of work that went to Microsoft Word). Since docxtemplater does not know how to render a docx document, (which determines the page numbers), this is why it is impossible to regenerate the page numbers within docxtemplater. A solution would be to look for a tool or script that can communicate with Word and regenerate the Table of Contents.
As long as you have an active subscription, you can download all latest docxtemplater modules.
You can upgrade your package.json automatically to upgrade all modules you are using and docxtemplater itself by using following command :
npm install docxtemplater && npx -y update-docxtemplater && npm install
You can use the following code sample, that doesn't use docxtemplater directly.
const PizZip = require("pizzip");
const { DOMParser } = require("@xmldom/xmldom");
const fs = require("fs");
const path = require("path");
function str2xml(str) {
if (str.charCodeAt(0) === 65279) {
// BOM sequence
str = str.substr(1);
}
return new DOMParser().parseFromString(str, "text/xml");
}
function getParagraphs(content) {
const zip = new PizZip(content);
const xml = str2xml(zip.files["word/document.xml"].asText());
const paragraphsXml = xml.getElementsByTagName("w:p");
const paragraphs = [];
for (let i = 0, len = paragraphsXml.length; i < len; i++) {
let fullText = "";
const textsXml =
paragraphsXml[i].getElementsByTagName("w:t");
for (let j = 0, len2 = textsXml.length; j < len2; j++) {
const textXml = textsXml[j];
if (textXml.childNodes) {
fullText += textXml.childNodes[0].nodeValue;
}
}
paragraphs.push(fullText);
}
return paragraphs;
}
// Load the docx file as binary content
const content = fs.readFileSync(
path.resolve(__dirname, "examples/cond-image.docx"),
"binary"
);
// Will print ['Hello John', 'how are you ?'] if the document has two paragraphs.
console.log(getParagraphs(content));
If you have the error :
The scope parser for the tag "%image" failed to compile
It means that you didn't attach the docxtemplater-image module.
To do this, you need to have following line ;
const doc = new Docxtemplater(zip, {
modules: [new ImageModule(imageOpts)],
// other options such as parser, delimiters, paragraphLoop, ...
})
See the image module docs for the full documentation about how to use the image-module.