Document

A Document object is passed on the onruncompleted callback. The Document is currently not guaranteed to have any attributes. It offers two methods; one is to retrieve the content of the document, and the other is to update it.

The GetContent method accepts one callback parameter:

  • callback.

    Function(format, content). This method is called once the content of the document is retrieved from the server. The format parameter contains the format of the result document (.doc, .docx or .pdf). The content parameter includes the actual content (base64-encoded).

The SetContent method accepts content as its only parameter:

Attribute Type Description
content Base64String The content that is uploaded to the server to replace the currently stored content of the document.