Interacting with editorsPDF APIMethodsPasteText本页总览PasteTextAsk a question 将文本粘贴到文档中。 语法 expression.PasteText(text); expression - 表示 Api 类的变量。 参数 名称必需/可选数据类型默认值描述text必需string指定要粘贴到文档中的文本的字符串值。 返回值 此方法不返回任何数据。 示例 window.Asc.plugin.executeMethod ("PasteText", ["ONLYOFFICE for developers"]);