DocumentTools
SetDocumentProperty
set property of a document
Calling Sequence
Parameters
Description
Examples
Compatibility
SetDocumentProperty(attr, val)
SetDocumentProperty(attr, val, mwfile, outfile)
attr
-
{name,string,list({name,string}) ; property of the document that is to be set
val
anything ; value of property to set
mwfile
string ; (optional) filename of a .mw file
outfile
string ; (optional) destination filename
The SetDocumentProperty function sets the value of a document property in the currently open document, or, when specified in mwfile.
When mwfile is specified, it is modified in-place unless outfile is also provided, in which case, outfile is an identical full copy of the source worksheet, with the modified properties.
Suppose that you want to set the Author property of a document to your name. To do so, issue the following commands:
with⁡DocumentTools:
SetDocumentProperty⁡Author,your name
The DocumentTools[SetDocumentProperty] command was updated in Maple 2021.
The mwfile and outfile parameters were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
DocumentTools[GetDocumentProperty]
Download Help Document