Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxx/nokogiri-docx-manipulation-example


https://github.com/maxx/nokogiri-docx-manipulation-example

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

Here's a very simple script to call nokogiri and use xpath to find and modify some text in the document.

I was surprised how difficult it was to find a CLEAN SIMPLE example of this (including unzip/zip), so here is one.

usage: ruby replace_docx_content.rb test.docx

then open test-merged.docx!