Result
A Result object is passed on the onruncompleted callback. It has two attributes:
- type. Document or documentpack, depending on whether the document composition resulted in a single document or a Document Pack.
- object. The actual result. Currently only provided if type is document. In this case, the attribute exposes an object of type Document.