帖子
帖子
用户
博客
课程
显示全部楼层
8
帖子
0
勋章
60
Y币

[App引擎] officePreview无法预览pdf和excel文件

[复制链接]
发表于 2023-6-20 16:50:56
本帖最后由 BIP912152 于 2023-6-20 18:51 编辑

pdf文件打开一片黑,xls和xlsx结尾的文件打开就会卡住,软件没有响应

代码如下:

              let office = api.require('officePreview');
              office.open({
                // rect:{
                //   x:0, y:safeHeight,w:api.winWidth, h:api.frameHeight
                //   },
                  rect:{
                    x:0, y:api.safeArea.top+40,w:api.winWidth, h:'auto'
                  },
                  fixedOn:api.frameName,
                  fixed:true,
                  url:ret.savePath,
                  fileType: ret.savePath.substr(ret.savePath.lastIndexOf('.') + 1)
                });


380
帖子
4
勋章
6
Y币
您好,换其他模块试试。
8
帖子
0
勋章
60
Y币
技术咨询-F · 2023-6-21 11:24您好,换其他模块试试。

superFile也不行啊,还有其他可以预览文件的模块么
您需要登录后才可以回帖 登录

本版积分规则