AlfieriChou / alfierichou.github.io

AlfieriChou的博客
https://alfierichou.com
4 stars 0 forks source link

在线Word解决方案 #38

Open AlfieriChou opened 2 years ago

AlfieriChou commented 2 years ago

基础工作

基础说明

word基本信息存储

word to html

处理逻辑

  1. 前端获取a.docx的基本信息,获得页数和文件地址(加入鉴权cookie等headers标志位)
  2. 后端收到步骤1的获取基础信息返回相关信息
  3. 前端将a.docx的路径和加载页数的start和end传给渲染接口(加入鉴权cookie等headers标志位)
  4. 后端接收到render请求后,按页数开始结束标识解析成HTML页面并且渲染

参考文章

https://localcoder.org/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript