template = DocxTemplate::Docx.new "/opt/docx_template.docx" template.replace_text("##SINGLE_REPLACE_TEXT##", "ACTUAL TEXT HERE") template.replace_text("##MULTI_REPLACE_TEXT##", "ACTUAL TEXT HERE", true) template.replace_header("##HEADER_REPLACE_TEXT##", "ACTUAL TEXT HERE", true) template.replace_image("image1.jpeg", "/opt/image5.jpg") template.save('/opt/final.docx')
Required Ruby Version
>= 0
Authors
Maniankara
Versions
- 0.7 September 26, 2014 (227 KB)
- 0.6 September 24, 2014 (230 KB)
- 0.5 September 23, 2014 (230 KB)
- 0.4 September 22, 2014 (230 KB)
- 0.3 September 22, 2014 (230 KB)