Building the document
You use the commit action to build a document, either in the user interface or by using JavaScript APIs.
commit action is different:- Document builder: A new document is built based on your additions and deletions of pages, annotation changes, or both.
- Annotations: All annotations are saved.
- Redaction: All redactions are burned into the document permanently.
To build the document after applying page modifications, you must commit the actions that you performed.
Committing with the user interface
Set the documentBuilderShowButtons parameter to builddocument,
and you can see a button displayed in the top toolbar. Click this button to initiate the commit
process. The document is built on the server and can be downloaded by the client.
Committing with the JavaScript API
ViewONE.commit();Commit process
When you click the build document button in the user interface or call the JavaScript commit method, the commit process begins. This process uses the RoundTrip JavaScript API. See the following section Configuring the RoundTrip API for implementing the commit process.
If none of the events that are documented are listened for, the build document process produces dialogs and progress bars within the user interface. If the events are listened for, then the roundtrip process must be implemented and callbacks must be responded to.