go语言实现 word格式转换为 html格式,并实现docker打包部署

liuyuqi-dellpc 52441fe53b create diretory 2 years ago
.github 52441fe53b create diretory 2 years ago
.vscode 52441fe53b create diretory 2 years ago
.dockerignore 52441fe53b create diretory 2 years ago
.gitignore c5c78207da init 2 years ago
Dockerfile 52441fe53b create diretory 2 years ago
README.md 52441fe53b create diretory 2 years ago
convert.go 52441fe53b create diretory 2 years ago
docker-compose.yml 52441fe53b create diretory 2 years ago
go.mod c5c78207da init 2 years ago
go.sum c5c78207da init 2 years ago
xx.docx f44e22799e add docx 2 years ago

README.md

word to xml

实现word转换为xml list数据。

安装部署

Ubuntu 或 Centos7,安装如下依赖:

sudo apt-get install poppler-utils wv unrtf tidy
go get github.com/JalfResi/justext

github action 配置docker参数: USERNAME, PASSWORD, REGISTRY, GITHUB_RUN_NUMBER

使用

docker pull hub.tencentyun.com/google/wordtohtml:v1.0.1

alias wordtohtml='docker run -it --rm -v `pwd`:/app jianboy/wordtohtml'

alias pdf2htmlEX='docker run -ti --rm -v `pwd`:/pdf bwits/pdf2htmlex pdf2htmlEX'
pdf2htmlEX --zoom 1 test.pdf