PPT导出图片显示权限不足

阅读次数 1

使用方式:

//@file=base.pptx
async function example() {
  await instance.ready()

  const app = instance.Application

  // 导出文件为图片
  const imgUrl = await app.ActivePresentation.ExportAsFixedFormat({
    FixedFormatType: app.Enum.PpFixedFormatType.ppFixedFormatTypeIMG,
    From: 0,
    To: 1
  })
  console.log(imgUrl)
}

控制台提示信息:

<img src="https://solution-community.wps.cn/uploads/post/5zke7AhbVvJ.png" alt="image.png"/>

请问解决方式 (PS:浏览器提示<img src="https://solution-community.wps.cn/uploads/post/5zkega3HgNh.png" alt="image.png"/>,不知道是否和这个报错有关)

0 Answers