All Projects → ethendev → Wopihost

ethendev / Wopihost

Licence: mit
office online preview and editor

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Wopihost

Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (+5.41%)
Mutual labels:  office, preview
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (-89.64%)
Mutual labels:  online, office
redmine preview office
Plugin for Redmine. Preview Microsoft Office Documents in Redmine's preview pane
Stars: ✭ 27 (-87.84%)
Mutual labels:  office, preview
Weihanli.npoi
NPOI Extensions, excel/csv importer/exporter for IEnumerable<T>/DataTable, fluentapi(great flexibility)/attribute configuration
Stars: ✭ 157 (-29.28%)
Mutual labels:  office
Gatsby Source Sanity
Gatsby source plugin for building websites using Sanity.io as a backend.
Stars: ✭ 160 (-27.93%)
Mutual labels:  preview
Online Neural Doodle
Feedforward neural doodle
Stars: ✭ 183 (-17.57%)
Mutual labels:  online
Duckx
C++ library for creating and updating Microsoft Word (.docx) files.
Stars: ✭ 214 (-3.6%)
Mutual labels:  office
Time To Leave
Log work hours and get notified when it's time to leave the office and start to live.
Stars: ✭ 155 (-30.18%)
Mutual labels:  office
Flutter preview
Flutter | Because a widget-driven development requires a widget-driven preview.
Stars: ✭ 197 (-11.26%)
Mutual labels:  preview
Markdown Preview.nvim
markdown preview plugin for (neo)vim
Stars: ✭ 2,858 (+1187.39%)
Mutual labels:  preview
Phpproject
A pure PHP library for reading and writing project management files
Stars: ✭ 179 (-19.37%)
Mutual labels:  office
Hsweb Expands
文件压缩解压、office文档读写、http,ftp请求模拟、shell执行、模板引擎
Stars: ✭ 160 (-27.93%)
Mutual labels:  office
Link Prevue
Vue component for generate a link preview
Stars: ✭ 186 (-16.22%)
Mutual labels:  preview
Django Herald
A Django messaging library
Stars: ✭ 159 (-28.38%)
Mutual labels:  preview
Macphish
Office for Mac Macro Payload Generator
Stars: ✭ 202 (-9.01%)
Mutual labels:  office
Imaginary Teleprompter
Professional grade, free software, teleprompter app.
Stars: ✭ 157 (-29.28%)
Mutual labels:  online
React Tiny Link
Convert your links into rich previews
Stars: ✭ 193 (-13.06%)
Mutual labels:  preview
Office Tool
© 2016-2021 Yerong. All Rights Reserved.
Stars: ✭ 3,657 (+1547.3%)
Mutual labels:  office
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+951.8%)
Mutual labels:  office
Ranalyticshhe
Repository for Online Classes
Stars: ✭ 183 (-17.57%)
Mutual labels:  online

wopihost

GitHub release GitHub license

English

项目介绍

基于 wopi 协议开发的 WopiHost , 支持 word, excel,ppt, pdf(仅支持预览)等文档的预览和编辑。

运行环境

需要安装 Office online 2016 才可以使用,基于jdk 1.8,spring boot开发。

使用方法

在 application.properties 中配置文档的存储路径

file.path=E:\\

接口访问地址

http://[owas.domain]/hosting/discovery
打开上面的URL, 可以看到结果如下的XML文件,上面有对应的文件类型的请求路径。
请求路径

word文档预览 http://[owas.domain]/wv/wordviewerframe.aspx?WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.docx word view

word文档编辑
http://[owas.domain]/we/wordeditorframe.aspx?WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.docx word edit

excel预览
http://[owas.domain]/x/_layouts/xlviewerinternal.aspx?ui=zh-CN&rs=zh-CN&WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.xlsx

excel编辑
http://[owas.domain]/x/_layouts/xlviewerinternal.aspx?edit=1&WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.xlsx

ppt预览 http://[owas.domain]/p/PowerPointFrame.aspx?PowerPointView=ReadingView&WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.pptx

ppt编辑
http://[owas.domain]/p/PowerPointFrame.aspx?PowerPointView=EditView&WOPISrc=http://[WopiHost.IP]:8080/wopi/files/test.pptx

备注:[owas.domain] 是 Office online 2016 的地址,[WopiHost.IP]是 WopiHost 服务的 IP 地址。 使用时替换成自己相应的服务地址。

常见问题

  • word 文档编辑支持 .docx 格式,不支持 .doc 。
  • pdf 仅支持预览,不支持编辑。
  • 如果 wopihost 的接口没有问题,但是不能预览或者编辑文档
    可能 wopi 和 Office Web Apps Server 之间的网络不能互通,也可能 Office Web Apps Server 配置有问题,建议检查配置或者重装后重试。
  • 不能打开中文名的文件,提示 Unable to Open the File
    将文件名使用 URLEncoder.encode 进行两次编码。例如:测试.xlsx, 编码为 %25E6%25B5%258B%25E8%25AF%2595.xlsx 即可正常预览、编辑。
  • 因为 office 的 BUG, 更新docx文件时 unlockAndRelock 和 putfile 请求中 header 中的锁不一致,因此在处理更新docx请求时,不去校验lock是否一致,否则无法保存docx更改。

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].