puredocx

1.0.1 • Public • Published

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.

Download count Current tag

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");

// Make sure to load your metered License API key prior to using the library.
// If you need a key, you can sign up and create a free one at https://puredocx.com
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.

Package Sidebar

Install

npm i puredocx

Weekly Downloads

59

Version

1.0.1

License

none

Unpacked Size

7.98 MB

Total Files

4

Last publish

Collaborators

  • springwen