Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxx/nokogiri-docx-manipulation-example
https://github.com/maxx/nokogiri-docx-manipulation-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxx/nokogiri-docx-manipulation-example
- Owner: maxx
- Created: 2012-02-28T11:19:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-02-28T11:27:28.000Z (over 12 years ago)
- Last Synced: 2024-05-15T04:31:08.885Z (6 months ago)
- Homepage:
- Size: 103 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
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!