Download the PHP package poetry/phpreaddocxmath without Composer
On this page you can find all versions of the php package poetry/phpreaddocxmath. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package phpreaddocxmath
phpreaddocxmath
介绍
php 读取远程docx文件,支持数学公式
这是一个php读取word的docx\ 我写这个的目的是为了完成公司的一个需求,要求能读取word中的公式,图片,文字数据。大部分都是数学题,物理题,化学题\ 目前支持读取文本,图片,公式,表格 文本目前只支持下划线,加粗,删除线。不只是大小,颜色 不支持docx域。能读到内容,但是回现还没有找到解决方案 不支持适量矢量图(譬如wmf,emf)
安装教程
(1)git clone下来可以直接用cli运行demo
(2)支持composer安装
使用说明
- php7.0以上版本
- 需要php拓展 XSL extension 文档 https://www.php.net/manual/zh/class.xsltprocessor.php
公式mathml兼容性
读取出出来的数学公式是mathml格式 IE浏览器,QQ浏览器,safri浏览器显示都没问题,但是Google显示有问题\ 查询了相关资料,Chrome浏览器在版本24的时候曾经昙花一现支持了下,不过很快就取消了支持,据说是出于安全考虑
我发先这个东西可以完美解决因浏览器问题,导致的数学公式显示问题 convent MATHML to MathJax,MathJax https://www.mathjax.org/
js渲染的公式,如果是vue的页面,必须在页面加载完成后,再引入js才有效果。
All versions of phpreaddocxmath with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package poetry/phpreaddocxmath contains the following files
Loading the files please wait ....