PureDocx - Template for Js
PureDocx is a library that generates docx/xlsx/pptx documents from docx/xlsx/pptx templates.
It can replace {placeholders} with data, and also supports loops, conditions, adding or replacing images, charts, watermarks, etc.
![Current tag](https://img.shields.io/npm/v/puredocx.svg?style=flat)
Word Examples
Excel Examples
Powerpoint Examples
Multiple examples are provided in our example repository https://github.com/mllx87/puredocx-examples.
Contact us if you need any specific examples.
Installation
Puredocx NPM Home
With modules:
npm install --save puredocx
Usage
First, download the input.docx file and place it in the same folder as your JavaScript file.
const Puredocx = require("puredocx");
var puredocx = new Puredocx()
puredocx.setMeteredKey(process.env.PUREDOCX_LICENSE_API_KEY)
var substitutions = {
"title":"hello",
"summary":"New World",
"staff":30,
"company":"mllx"
};
puredocx.render("input.docx",substitutions,"output.docx")
License key
This software package (puredocx) is a commercial product and requires a license code to operate.
To Get a Metered License API Key in for free in the Free Tier, sign up on https://puredocx.com
Support and consulting
Please email us at support@milyleshare.com for any queries.
If you have any specific tasks that need to be done, we offer consulting in certain cases.
Please contact us with a brief summary of what you need.