导入文件(PPTX/ENBX)

# 导入文件(PPTX/ENBX)

# 方法原型

void ImportFile(ImportFileModel model);

# 参数

interface ImportFileModel {
    /**
    * FileUrl:资源字符串,支持 web url 和 data url。
    */
    url: string;

    /**
    * fileType:文件类型,可指定为“pptx”或者“enbx”;如果不指定请确保 URL 中资源的扩展名是正确的。
    */
    fileType?: string
}

关于资源字符串,请参阅:资源类型

# 调用示例

window.external.InvokeMethod(JSON.stringify({ "method": "ImportFile", "args": JSON.stringify({ "url": "http://localhost:5000/%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99.pptx", "fileType": "pptx" })}))
更新时间: Tuesday, March 16, 2021 12:56