-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Copying Images from document #1457
Comments
UPDATE: I manage to track picture location in document delete them and re-add as new picture. This is a much longer way than spected but ir works. Anyway I appreciate any comments on the original issue. Thanks! The process was:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everyone!
I'm trying to copy the contenct of a document to another document but I failed to copy the image relations.
So:
copy_body(source_doc, target_doc)
copy de body fromsource_doc
totarget_doc
. Relationships are not adjusted.copy_relations(source_doc, target_doc)
add relationships present insource_doc
totarget_doc
and save de new rId's as adict (old_rId --> new rId)
target_file
byfor pic in element.xpath('.//a:blip')
and changerId
present inpic.attrib[qn('r:embed')]
tonew_rId
Running the script prints in terminal:
I don't know what I'm missing, help please!
The text was updated successfully, but these errors were encountered: