Categories: None [Edit]

docx_template

https://rubygems.org/gems/docx_template
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')

Total

Ranking: 54,958 of 197,314
Downloads: 21,418

Daily

Ranking: 99,080 of 197,258
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,821,191,348bundler
81,434,483,085rake

Owners

#GravatarHandle
1iconmaniankara