Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File replacement within document #18

Closed
wants to merge 1 commit into from
Closed

File replacement within document #18

wants to merge 1 commit into from

Conversation

tmikoss
Copy link
Contributor

@tmikoss tmikoss commented Jul 4, 2014

Allows replacing arbitrary contents of docx container with provided values.

My example use case: replacing a logo in the header of the document depending on the context it's generated in.

@bitops
Copy link
Contributor

bitops commented Oct 28, 2014

@tmikoss I've integrated your change into my fork of the project.

@chrahunt
Copy link
Collaborator

@tmikoss Thanks! I'll add documentation to this and example in the README later. I'm going to close this PR but accept @bitops PR #20 which incorporates these changes.

@chrahunt chrahunt closed this Oct 29, 2014
@echan00
Copy link

echan00 commented Oct 8, 2018

@tmikoss would you be able to explain how your function works? I am looking to replace text in a document and was wondering if that's what you added to the library

@tmikoss
Copy link
Contributor Author

tmikoss commented Oct 8, 2018

@echan00 this is for replacing files, not text. A docx file is actually a zip archive, containing a whole bunch of files. This handles replacing files (for example, images) within the archive.

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.

None yet

4 participants