Skip to content

office to pdf ,eg: word to pdf , with golang

Notifications You must be signed in to change notification settings

urans/go-office2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word to pdf 接口工具

直接使用

docker run --name office2pdf -p 3000:3000 -d jetereting/office2pdf

# 通过 get 转化远程文档:http://localhost:3000/convert?originFile=文件网址
# 通过 post 直接转化本地:http://localhost:3000/convert 上传文件

修改

构建二进制

GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o office2pdf main.go

构建运行 docker 服务

docker build . -t jetereting/office2pdf:1.0.1

docker run --name office2pdf -p 3000:3000 -d office2pdf

docker logs -f office2pdf

curl http://localhost:3000/convert?originFile=文件网址
#http://localhost:3000/convert?originFile=http://qn.eiyou.ga/tmp/%E6%B8%B8%E6%88%8F%E5%90%8D%E7%A7%B0%E6%B8%B8%E6%88%8F%E8%BD%AF%E4%BB%B6%E8%AF%B4%E6%98%8E%E4%B9%A6.doc

About

office to pdf ,eg: word to pdf , with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.5%
  • Dockerfile 3.5%