Class OpenDoPEReverter

java.lang.Object
org.docx4j.model.datastorage.OpenDoPEReverter

public class OpenDoPEReverter extends Object
Reverse the action of OpenDoPEHandler. Useful where a user has edited an instance docx, but you want to regenerate with fresh XML data. This won't work if RemovalHandler has been used to removed the content controls. Note that any edits made by hand within a condition or repeat will be lost, so it is recommended that after regenerating from this reverted template, you do a document compare (eg in Word) against your previous instance to pick up any edits in a condition or repeat which this process will have dropped). This class modifies the instance, so you'll need to clone or copy it first if that's a problem.
Author:
jharrop