GetDocument
使用指定的文本字段属性创建文本字段。
语法
expression.GetDocument();
expression - 表示 Api 类的变量。
参数
此方法没有任何参数。
返回值
示例
访问文档对象以修改 PDF 中的页面。
// How do I access the main document object in a PDF?
// Retrieve the document, add a new page, and rotate it in a PDF.
let doc = Api.GetDocument();
let page = doc.AddPage(1);
page.SetRotation(90);