You can query and set object's properties and call methods to control the document instance.
IDocument.name property returns the current document's name (usually a file or device path). IDocument.size property returns the current size of a document. You can also change the size by simply assigning to this property.
All document views can be accessed using the IDocument.views property.
An ongoing asynchronous operation may be cancelled at any time by calling the IDocument.cancel method.
A document may be closed with a help of IDocument.close method.