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

bug fix when merging documents (affects when images are present in documents to be merged) #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aw3as
Copy link

@aw3as aw3as commented Aug 14, 2020

Resolves #10 ; sets new_rel_node consistently in def self.merge_documents to avoid Nokogiri lowercasing the <Relationship> node that is created and attached

@parthnagori
Copy link
Owner

Hi, I'm running behind on reviewing PRs. Will try to get to it by Nov 1st. If it's still pending, please leave a comment again. Thank You!

@SpaYco
Copy link

SpaYco commented Apr 2, 2022

great work, this fixes the issue but the images wouldn't load, because it's not adding the actual images to word/media/<file>, or maybe it doesn't always do that, I'm not familiar with how docx work, either way, this worked for me, for anyone passing by this :)

# add the image to word/media folder
zos.put_next_entry("word/#{target_val}")
zos << zip_file.read("word/#{target_val}")

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.

Malformed <Relationship> Node When Merging Documents (affects merging documents with images)
3 participants