-
Notifications
You must be signed in to change notification settings - Fork 107
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
Feature Request - Splitting and recombining an inputted document #449
Comments
DragonflyStats
changed the title
Splitting and recombining an inputted document
Feature Request - Splitting and recombining an inputted document
Sep 15, 2022
Hello @DragonflyStats Sorry for the lack of feedback. We will try, but not sure how :) I think it is indeed necessary to use a technique on the cursors and This is what I have in mind:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there - my query relates to dividing / truncating / split the document at a specified part of the document.
Suppose I have a pre-existing wod document, and there are 3 parts (Parts 1, Parts 2 and Parts 3).
I would like to be able to separate the document into the three parts , and recombine Parts 1 and 3 with a new part 2.
Here is some pseudo-code that hopefully expresses the idea
The rationale here is that Part 2 of the document is too complex to edit with body_replace_text() or may have images that need to be updated. Additionally there is no way of telling where in the document - in terms of sheet number - where Part 2 starts
Update 1
I think this code segment in Stack Overflow might be able to effectively extractmy_Part_3
https://stackoverflow.com/questions/71811129/how-to-subset-text-from-a-word-docx-after-a-matching-phrase/72018891#72018891
If I can get my_Part_1 then I should have an effective solution
Update 2
I am trying the inverse to the solution presented previously to extract out my_Part_1.
It is not working. I think the issue is the error argument needs to be something else.
The text was updated successfully, but these errors were encountered: