function cbPrepareDocxToGenerate() {
    // Tell all the features (plugins) that we are about to generate a new document zip:
    gen_private.features.type.docx.emitEvent('beforeGen', genobj)

    // Allow some plugins to do more stuff after all the plugins added their data:
    gen_private.features.type.docx.emitEvent('beforeGenFinal', genobj)
  }
Prepare everything to generate a docx zip.