img 和 pdf 都好解决,其中还有 office 文件
目前就是 office 文件有点麻烦,先想的是转成 pdf,用了 spire 相关的来转,但是中文全是白框,但是服务器上的中文都是正常显示的
不知各位大佬们有没有什么好的办法
![]() | 1 yakumo520 2021-05-26 17:15:48 +08:00 白框是编码字符集不对,检查一下 pdf 转 word 比较成熟,多看看吧 |
![]() | 3 wyx119911 2021-05-26 20:09:20 +08:00 office 想预览花钱买服务吧,自己做效果不行的 |
![]() | 4 DonaldY 2021-05-26 21:21:13 +08:00 白框可能是识别不了字体(没有对应的字体),excel 可转 html libreoffice 可以试试 |
![]() | 5 iSNN OP |
6 renmu123 2021-05-26 21:52:43 +08:00 via Android ie 支持 word 预览(笑) |
![]() | 7 jtacm 2021-05-26 21:53:43 +08:00 libreoffice 可以把 Office 转成 PDF |
![]() | 8 0044200420 2021-05-26 23:13:21 +08:00 后端转换 pdf |
9 vueli 2021-05-27 09:12:01 +08:00 我记得有个微软的一个接口, 在线转换阅读. 找不到了, 我可以肯定有 |
10 h4de5 2021-05-27 09:52:32 +08:00 |
![]() | 12 iSNN OP @DonaldY libreoffice 有上方 v 友所说的字符集问题的,虽然我从表现看是字符问题,但没确定,因为服务器上打开中文的文件是正常的 |
![]() | 14 aaa5838769 2021-05-27 11:49:25 +08:00 libreoffice |
15 image72 2021-05-28 02:15:47 +08:00 使用 google docs 或者 office 365 在线预览 <iframe src="https://docs.google.com/gview?url=http://remote.url.tld/path/to/document.doc&embedded=true"></iframe> <iframe src='https://view.officeapps.live.com/op/embed.aspx?src=http://remote.url.tld/path/to/document.doc' width='1366px' height='623px' frameborder='0'>This is an embedded <a target='_blank' href='http://office.com'>Microsoft Office</a> document, powered by <a target='_blank' href='http://office.com/webapps'>Office Online</a>.</iframe> Convert Word documents (.docx files) to HTML mammoth.js |
16 MarioLuo 2021-05-28 07:29:16 +08:00 via Android 可搭建独立的文件预览服务,使用: https://github.com/kekingcn/kkFileView |