doc([doc])
Sets or possibly creates the current document and returns it. If the doc
parameter is not given, the current document gets set to the active document in the application. If no document at all is open, a new document gets created.
Type: function
Parameter(s):
- doc {Document} Optional:
The document to set the current document to.
Returns:
-
{Document}:
The current document instance.