GetDocument
function GetDocument(): ApiDocument
Description
Returns the main document.
Returns
ApiDocument
Try It
var oDocument = Api.GetDocument();
var oParagraph = Api.CreateParagraph();
oParagraph.AddText("This is a new paragraph");
oDocument.Push(oParagraph);