Coder Social home page Coder Social logo

ckiss / docxtemplater Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-xml-templating/docxtemplater

0.0 2.0 0.0 14.29 MB

Generate docx from templates, for Node.js, the Browser and CLI

Home Page: http://docxtemplater.readthedocs.org/en/latest/

License: Other

CoffeeScript 35.97% Shell 2.47% Python 3.09% CSS 2.71% JavaScript 55.76%

docxtemplater's Introduction

DocxTemplater

Build Status Download count Current tag

docxtemplater is a library to generate docx documents from a docx template. It can replace tags by their values and replace images with other images. It is very user oriented as users can without a lot of programming knowledge create their first template and automatically change variables in it.

Documentation

The full documentation can be found on read the docs.

Demo

All demos can be found here

Including:

Quickstart

Installation: npm install docxtemplater

var DocXTemplater= require('docxtemplater');

//loading the file
docxtemplater=new DocXTemplater().loadFromFile("tagExample.docx");

//setting the tags
docxtemplater.setTags({"name":"Edgar"});

//when finished
docxtemplater.finishedCallback=function () {
    docxtemplater.output();
}

//apply the tags
docxtemplater.applyTags();

You can download tagExample.docx and put it in the same folder than your script.

Have version 0.6.3 or less and using the qrcode module ? You probably have a security issue. See upgrade.md

Similar libraries

They are a few similar libraries that work with docx, here’s a list of those I know a bit about:

  • docx4j :JAVA, this is probably the biggest docx library out there. They is no built in templating engine, but you can generate your docx yourself programmatically
  • docx.js: Javascript in the browser, you can create (not modify) your docx from scratch, but only do very simple things such as adding non formatted text

Known issues

Todo:

docxtemplater's People

Contributors

ckiss avatar edi9999 avatar tamagokun avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.