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

  1. 0.7 September 26, 2014 (227 KB)
  2. 0.6 September 24, 2014 (230 KB)
  3. 0.5 September 23, 2014 (230 KB)
  4. 0.4 September 22, 2014 (230 KB)
  5. 0.3 September 22, 2014 (230 KB)
Show all versions (7 total)

SHA 256 checksum