GetDocumentInfo
function GetDocumentInfo(): object
Description
Returns the document information: Application - the application the document has been created with. CreatedRaw - the date and time when the file was created. Created - the parsed date and time when the file was created. LastModifiedRaw - the date and time when the file was last modified. LastModified - the parsed date and time when the file was last modified. LastModifiedBy - the name of the user who has made the latest change to the document. Autrors - the persons who has created the file. Title - this property allows you to simplify your documents classification. Tags - this property allows you to simplify your documents classification. Subject - this property allows you to simplify your documents classification. Comment - this property allows you to simplify your documents classification.
Returns
object
Try It
const oPresentation = Api.GetPresentation();
const oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
const oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 213, 191), 0);
const oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 111, 61), 100000);
const oFill = Api.CreateRadialGradientFill([oGs1, oGs2]);
const oStroke = Api.CreateStroke(0, Api.CreateNoFill());
const oShape = Api.CreateShape("flowChartMagneticTape", 300 * 36000, 130 * 36000, oFill, oStroke);
oShape.SetPosition(608400, 1267200);
const oDocContent = oShape.GetDocContent();
const oParagraph = oDocContent.GetElement(0);
const oDocInfo = oPresentation.GetDocumentInfo();
oParagraph.AddText('This document has been created with: ' + oDocInfo.Application);
oSlide.AddObject(oShape);