How to edit docx with nokogiri and rubyzip

后端 未结 3 1225
走了就别回头了
走了就别回头了 2021-02-01 10:27

I\'m using a combination of rubyzip and nokogiri to edit a .docx file. I\'m using rubyzip to unzip the .docx file and then using nokogiri to parse and change the body of the wo

3条回答
  •  忘掉有多难
    2021-02-01 11:11

    According to the official Github documentation, you should Use write_buffer instead open. There's also a code example at the link.

提交回复
热议问题