Edit the result document

In many scenarios, editing a Microsoft Word document immediately after it has been composed is a requirement of the business process. The API contains functionality that allow for a seamless integration of editing in the process.

The document object passed during the onruncompleted callback exposes GetContent and SetContent methods that help retrieve and update the content of the result document. A subsequent call to the ComposeDocxInteractiveGet returns the updated document.

One way of offering the user the content for editing is to use an ActiveX control. ActiveX is a technique that provides useful functionality in many contexts. An ActiveX control that supports editing of base64 Word content is available on a Kofax KCM installation and can be downloaded from the start page. The example from Test an example integration of the JavaScript API shows how the ActiveX control can be implemented to use interactive document composition with post-composition editing of the result document.