-
Notifications
You must be signed in to change notification settings - Fork 8
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
Help to modify a docx file #3
Comments
The opc container can be opened in read/write mode using opcContainerOpenMode::OPC_OPEN_READ_WRITE I am editing PowerPoint files, not docx but I open mine like this:
|
Yes i did it like that , but don't know how to modify the text values of nodes and commit the changes to the docx file. |
Sorry, didn't mean to close this one. libopc is focused on the packaging-of the files and managing the relationship pieces. ex. inserting an image requires setting up relationsships and adding the image into the package. To work on the actual document, you end up reading the part of interest as xml content into an xmlDocPtr, changing the xml and then re-writing that xml document. It's been a while and I have my own C++ wrapper code but it looks roughly like:
Sorry it's not clearer but libopc is pretty general and mainly helps manage overall document container and looking up parts and adding contained images etc. |
HI, I'm trying to understand how to modify text in a Word doc file but looking at the libopc samples i could only see examples for read and write, they use separate objects/functions.
Its not possible to modify a document on-the fly, without creating a reader and a writer?
If not, what's the easiest way to copy the original and make the change with a new writer?
The text was updated successfully, but these errors were encountered: