Skip to content

Conversation

@jaspervandenberg
Copy link

This code makes it possible to search and replace matches inside the header and footer of a .docx file.

The header/footer and document .xml files are found using the following code:

@zip_file.entries.map(&:name).select do |entry|
 !(/^word\/(document|footer[0-9]+|header[0-9]+).xml$/ =~ entry).nil?
end

@adamalbrecht
Copy link
Owner

Thanks for contributing this - I will try it out sometime soon.

@graysonchen
Copy link

@adamalbrecht Time goes fast. What do you think about it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants