Package org.docx4j.samples
Class ContentControlsBindInverse
java.lang.Object
org.docx4j.samples.ContentControlsBindInverse
Copy content control content back to the custom XML part.
Microsoft Word does this automatically for a content control
which has a w:databinding element.
It doesn't do it for a rich text control. Here we also
do that, ie for a content control with a tag such as:
'od:progid=Word.Document'
The content is converted back to escaped WordML, and
injected following the relevant XPath.
This class provides a way
to update the XML part for cases
where editing is done in something other
than Word.
Of course, this sample won't work if RemovalHandler
has been used to remove all SDTs or the XML part!
Limitations:
- only the Main Document Part (for escaped WordML)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContentControlsBindInverse
public ContentControlsBindInverse()
-
-
Method Details
-
main
- Throws:
Docx4JException
-