Giter VIP home page Giter VIP logo

docx_webmerge's Introduction

docx_webmerge

Use JSON to populate a .docx file via a form submit. Here is a live example. This tool is pretty much Dave Zvenyach's docx_mailmerge.py as a webservice. You can find the original code in his post Mailmerge for Word Docs... in Python?

How To

Assuming you have this repo's Python app up and running on a server, all one has to do is:

  1. Create a .docx Word document with mailmerge feilds;
  2. Upload your document to a webserver hosted on a whitelisted domain (defined in docxmerge/docxmerge.py); and
  3. Pass the document's location (docx_uri), your desired filename (name), and some JSON data (json_doc) to the service.

After that, the service will return a .docx document populated with your JSON data.

Note: if you're a non-profit and would like me to add your website to the whitelist for the example service available at http://colarusso.pythonanywhere.com/ (the app behind the live example linked above), let me know. As long as you aren't expecting wicked crazy volume, I'll probably just add you to the list.

Known Issues

Check out this repo's Issues tab for a list of known issues.

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.