Save a document

Saves the specified document. If the document has not been saved before, a file path must be provided.