Documentation and demo for module word-run


This module exposes a tag to insert raw runs (<w:r>) inside the document. This makes it possible to include styled text without having to remove the enclosing paragraph like in the {@rawXml} tag.

Order now


Input Output
Data Code
    companyDescription: `
        <w:r><w:rPr><w:i/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">Acme </w:t></w:r>
        <w:r><w:rPr><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">company is </w:t></w:r>
        <w:r><w:rPr><w:b/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">amazing</w:t></w:r>
    description1: `
        <w:r><w:rPr><w:i/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">italic, </w:t></w:r>
        <w:r><w:rPr><w:b/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">bold, </w:t></w:r>
        <w:r><w:rPr><w:color w:val="800000"/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">color</w:t></w:r>
    description2: `
        <w:r><w:rPr><w:u w:val="single"/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">Underline, </w:t></w:r>
        <w:r><w:rPr><w:strike/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">strike, </w:t></w:r>
        <w:r><w:rPr><w:vertAlign w:val="subscript"/><w:lang w:val="en-GB"/></w:rPr><w:t xml:space="preserve">subscript</w:t></w:r>
    price1: 2000,
    price2: 5000
const doc = new Docxtemplater();
const inputZip = new JSZip(docX);
const wordRunModule = new WordRunModule();
const output = doc.render().getZip();

Order module word-run

This module is available right now, you can contact us and get the source code of the module in less than a day

To order this module, send us an email at : with the subject "Order module word-run"

If you are in hurry, you can send us the following information so that we can setup a license quickly :

  • Name of the legal representative of the company
  • Company name
  • Street Address of company
  • Town of company
  • Country of company
  • VAT of company or official tax identification number


Buying a module gives you support for the module for a duration of 1 year. You get free updates of the bought module during the support period, and you can contact us via email if you encounter any problems with the bought module. We will make sure that your questions are answered promptly.

Edgar Hipp

I'm the creator of docxtemplater. I work on making docxtemplater great since 2013.