commit()
This method initiates the commit process for the current edit mode.
When you call this method, the commit process begins. For more information about implementing the
commit process, which uses the RoundTrip JavaScript API, see Configuring the RoundTrip API.
If you do not listen to any of the events that are documented in the RoundTrip
section, the build document process produces dialogs and progress bars within the user
interface.
If you do listen to these events, then you must implement the RoundTrip process
and you must respond to call-backs.
The action taken by the commit method depends on the edit mode as described in the following
table:
| Edit mode | Commit action |
|---|---|
| Annotation | Calling the method saves all annotations. |
| Document builder | Calling the method builds the new document based on the user's additions and deletions of pages, annotation changes, or both. |
| Redaction | Calling the method burns the redactions into the document permanently. |
Sample syntax
ViewONE.commit();