| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
positional replacement
|
Nice job. Would you consider adding a property for the Paragraph object to get the final text? (similar to the different solutions proposed on #340 ) |
Sorry, something went wrong.
|
Hi @jfthuong and @amithkk, following up on the discussion here about reading the final text: I've opened #1538 which implements native support for w:ins in paragraph.text (resolving to the 'Accepted' view) and registers w:delText for provenance tools. It might be a useful complement to the writing capabilities here. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds comprehensive support for creating and managing tracked changes (revisions) in Word documents, enabling programmatic document editing with full revision history visible in Microsoft Word.
Tests have been added for new functionality, and existing tests have been run to ensure that backwards compatibility is maintained.
Why?
Users need to make programmatic changes to Word documents while preserving some sort of an audit trail. Solves #930 and #340
Features
Example Usage
This is just barebones, and this capability can be extended by later additions to possibly build out a context manager (eg. with document.track_all_changes() as doc:) to make it function similar to how "Track Changes" works in word. However there are a fair number of edge cases you'd have to deal with in that situation.
Some of this work draws on the exhaustive code written in OpenXmlPowerTools WmlComparer and the underlying .NET library.