Skip to main content

GetDocument

Creates a text field with the specified text field properties.

Syntax

expression.GetDocument();

expression - A variable that represents a Api class.

Parameters

This method doesn't have any parameters.

Returns

ApiDocument

Example

This example gets the document object for further use.

let doc = Api.GetDocument();
let page = doc.AddPage(1);
page.SetRotation(90);