jason wrote:Hi, the sample code uses a simple XSLT to accept/reject changes: https://github.com/plutext/docx4j/blob/ ... anges.xslt
The sample code applies it to the entire main document part (document.xml).
You could also apply it to a single paragraph, content control, or table.
Instead of XLST, you could use https://github.com/plutext/docx4j/blob/ ... lback.java
How would you see the API working? Something like:
accept(List<Object> objects, String author), accepts all changes by author in the list of objects
reject(List<Object> objects, String author), rejects all changes by author in the list of objects
accept(List<Object> objects), accepts all changes in the list of objects
reject(List<Object> objects), rejects all changes in the list of objects
The Enterprise Ed doesn't offer any additional track changes functionality compared to docx4j.
Users browsing this forum: Bing [Bot], Google [Bot] and 49 guests